mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +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:
parent
4ab1029c56
commit
512116ce26
@ -1,3 +1,8 @@
|
||||
2020-09-15 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* python/python.c (gdbpy_parameter_value): Use
|
||||
gdb_py_object_from_ulongest.
|
||||
|
||||
2020-09-15 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* python/py-infevents.c (create_register_changed_event_object):
|
||||
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user