summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-04-20 20:02:30 (GMT)
committerGregory P. Smith <greg@krypto.org>2018-04-20 20:02:30 (GMT)
commit11659d00b9185c8f02ea6b642fa475a80e21f1a9 (patch)
treea857d57d5466db72911771f8fd4493cd80924ad4 /Tools
parent392520bd78cd18639a27e5d2803c2e1c2bd593a8 (diff)
downloadcpython-11659d00b9185c8f02ea6b642fa475a80e21f1a9.zip
cpython-11659d00b9185c8f02ea6b642fa475a80e21f1a9.tar.gz
cpython-11659d00b9185c8f02ea6b642fa475a80e21f1a9.tar.bz2
bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)
(cherry picked from commit 53f67d401df40486fd0fb8fbcf9da725cd37290c)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/gdb/libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 839ce79..7df7c9b 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -730,7 +730,7 @@ class PyDictObjectPtr(PyObjectPtr):
else:
offset = 8 * dk_size
- ent_addr = keys['dk_indices']['as_1'].address
+ ent_addr = keys['dk_indices'].address
ent_addr = ent_addr.cast(_type_unsigned_char_ptr()) + offset
ent_ptr_t = gdb.lookup_type('PyDictKeyEntry').pointer()
ent_addr = ent_addr.cast(ent_ptr_t)