bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)
(cherry picked from commit 53f67d401d
)
This commit is contained in:
parent
392520bd78
commit
11659d00b9
|
@ -730,7 +730,7 @@ class PyDictObjectPtr(PyObjectPtr):
|
||||||
else:
|
else:
|
||||||
offset = 8 * dk_size
|
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_addr = ent_addr.cast(_type_unsigned_char_ptr()) + offset
|
||||||
ent_ptr_t = gdb.lookup_type('PyDictKeyEntry').pointer()
|
ent_ptr_t = gdb.lookup_type('PyDictKeyEntry').pointer()
|
||||||
ent_addr = ent_addr.cast(ent_ptr_t)
|
ent_addr = ent_addr.cast(ent_ptr_t)
|
||||||
|
|
Loading…
Reference in New Issue