Skip to content

Commit

Permalink
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-…
Browse files Browse the repository at this point in the history
…12284)

(cherry picked from commit 1ceb3a3)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
  • Loading branch information
2 people authored and vstinner committed Mar 12, 2019
1 parent 1c4580d commit 047f8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -0,0 +1 @@
Fix py-list and py-bt commands of python-gdb.py on gdb7.
2 changes: 1 addition & 1 deletion Tools/gdb/libpython.py
Expand Up @@ -1178,7 +1178,7 @@ def char_width(self):
def proxyval(self, visited):
global _is_pep393
if _is_pep393 is None:
fields = gdb.lookup_type('PyUnicodeObject').target().fields()
fields = gdb.lookup_type('PyUnicodeObject').fields()
_is_pep393 = 'data' in [f.name for f in fields]
if _is_pep393:
# Python 3.3 and newer
Expand Down

0 comments on commit 047f8f2

Please sign in to comment.