mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 18:57:01 +08:00
Don't use PyLong_FromUnsignedLong
This changes gdb to avoid PyLong_FromUnsignedLong, preferring gdb_py_object_from_ulongest instead. gdb/ChangeLog 2020-09-15 Tom Tromey <tromey@adacore.com> * python/python.c (gdbpy_parameter_value): Use gdb_py_object_from_ulongest.
This commit is contained in:
@ -504,13 +504,13 @@ gdbpy_parameter_value (enum var_types type, void *var)
|
||||
|
||||
if (val == UINT_MAX)
|
||||
Py_RETURN_NONE;
|
||||
return PyLong_FromUnsignedLong (val);
|
||||
return gdb_py_object_from_ulongest (val).release ();
|
||||
}
|
||||
|
||||
case var_zuinteger:
|
||||
{
|
||||
unsigned int val = * (unsigned int *) var;
|
||||
return PyLong_FromUnsignedLong (val);
|
||||
return gdb_py_object_from_ulongest (val).release ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user