Skip to content

Commit 1ceb3a3

Browse files
authored
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848)
1 parent d9bd8ec commit 1ceb3a3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix py-list and py-bt commands of python-gdb.py on gdb7.

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def char_width(self):
11781178
def proxyval(self, visited):
11791179
global _is_pep393
11801180
if _is_pep393 is None:
1181-
fields = gdb.lookup_type('PyUnicodeObject').target().fields()
1181+
fields = gdb.lookup_type('PyUnicodeObject').fields()
11821182
_is_pep393 = 'data' in [f.name for f in fields]
11831183
if _is_pep393:
11841184
# Python 3.3 and newer

0 commit comments

Comments
 (0)