Commit 6f53d34f authored by Marc Hartmayer's avatar Marc Hartmayer Committed by Benjamin Peterson

closes bpo-16637: libpython: construct integer object directly from gdbvalue (GH-15232)

This fixes the exception '`ValueError: invalid literal for int() with base 10`
if `str(gdbval)` returns a hexadecimal value (e.g. '0xa0'). This is the case if
the output-radix is set to 16 in gdb. See
https://sourceware.org/gdb/onlinedocs/gdb/Numbers.html for more information.
parent 4346bad3
......@@ -1392,7 +1392,7 @@ class wrapperobject(PyObjectPtr):
def int_from_int(gdbval):
return int(str(gdbval))
return int(gdbval)
def stringify(val):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment