bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) · python/cpython@1ceb3a3 (original) (raw)
File tree
2 files changed
lines changed
- Misc/NEWS.d/next/Tools-Demos
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 | +Fix py-list and py-bt commands of python-gdb.py on gdb7. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1178,7 +1178,7 @@ def char_width(self): | ||
1178 | 1178 | def proxyval(self, visited): |
1179 | 1179 | global _is_pep393 |
1180 | 1180 | if _is_pep393 is None: |
1181 | -fields = gdb.lookup_type('PyUnicodeObject').target().fields() | |
1181 | +fields = gdb.lookup_type('PyUnicodeObject').fields() | |
1182 | 1182 | _is_pep393 = 'data' in [f.name for f in fields] |
1183 | 1183 | if _is_pep393: |
1184 | 1184 | # Python 3.3 and newer |