Skip to content

Commit 047f8f2

Browse files
miss-islingtonlisroach
authored andcommitted
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-12284)
(cherry picked from commit 1ceb3a3) Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
1 parent 1c4580d commit 047f8f2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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)