aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Tools/gdb/libpython.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-01-30 10:03:04 +0000
committerGitHub <noreply@github.com>2023-01-30 10:03:04 +0000
commitc1b1f51cd1632f0b77dacd43092fb44ed5e053a9 (patch)
treeda815b0f6e2daddbb013ce2383837c61b3675201 /Tools/gdb/libpython.py
parentf5a3d91b6c56ddff4644b5a5ac34d8c6d23d7c79 (diff)
downloadcpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.tar.gz
cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.zip
GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292)
Diffstat (limited to 'Tools/gdb/libpython.py')
-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 6453dff95df..56d6970b292 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -901,7 +901,7 @@ class PyLongObjectPtr(PyObjectPtr):
if ob_size == 0:
return 0
- ob_digit = self.field('ob_digit')
+ ob_digit = self.field('long_value')['ob_digit']
if gdb.lookup_type('digit').sizeof == 2:
SHIFT = 15