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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy