From 53f67d401df40486fd0fb8fbcf9da725cd37290c Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Fri, 20 Apr 2018 11:32:08 -0700 Subject: [PATCH] bpo-33312: update Tools/gdb/libpython.py to match. (GH-6548) --- Tools/gdb/libpython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 839ce799797..7df7c9bd541 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)