summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLisa Roach <lisaroach14@gmail.com>2019-03-12 03:21:25 (GMT)
committerGitHub <noreply@github.com>2019-03-12 03:21:25 (GMT)
commit1ceb3a3d172dcf0ddff38d5d6b559443ad065b84 (patch)
tree4b0a1cd1d47731a14d393606ce19a078896fac98
parentd9bd8ec2a40ea67bc4248a72943a409ee645ddf3 (diff)
downloadcpython-1ceb3a3d172dcf0ddff38d5d6b559443ad065b84.zip
cpython-1ceb3a3d172dcf0ddff38d5d6b559443ad065b84.tar.gz
cpython-1ceb3a3d172dcf0ddff38d5d6b559443ad065b84.tar.bz2
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848)
-rw-r--r--Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst1
-rwxr-xr-xTools/gdb/libpython.py2
2 files changed, 2 insertions, 1 deletions
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
index 0000000..d73452d
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst
@@ -0,0 +1 @@
+Fix py-list and py-bt commands of python-gdb.py on gdb7. \ No newline at end of file
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index bfaa940..d744cab 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -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