]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848)
authorLisa Roach <lisaroach14@gmail.com>
Tue, 12 Mar 2019 03:21:25 +0000 (20:21 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 03:21:25 +0000 (20:21 -0700)
Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst [new file with mode: 0644]
Tools/gdb/libpython.py

diff --git a/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst b/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst
new file mode 100644 (file)
index 0000000..d73452d
--- /dev/null
@@ -0,0 +1 @@
+Fix py-list and py-bt commands of python-gdb.py on gdb7.
\ No newline at end of file
index bfaa9403b7876461b7a732d14050fffac2867537..d744cab7642a75106dcc3b316cac69ce231e35b3 100755 (executable)
@@ -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