bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848)
This commit is contained in:
@@ -1178,7 +1178,7 @@ class PyUnicodeObjectPtr(PyObjectPtr):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user