From: Tom Tromey Date: Tue, 15 Sep 2020 17:08:56 +0000 (-0600) Subject: Don't use PyLong_FromUnsignedLong X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=512116ce26a66338e1be1847cc8b014f4d4bbc13;p=binutils-gdb.git 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 * python/python.c (gdbpy_parameter_value): Use gdb_py_object_from_ulongest. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 468bbc6cdad..4059cf13450 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-09-15 Tom Tromey + + * python/python.c (gdbpy_parameter_value): Use + gdb_py_object_from_ulongest. + 2020-09-15 Tom Tromey * python/py-infevents.c (create_register_changed_event_object): diff --git a/gdb/python/python.c b/gdb/python/python.c index 9cc8af63338..878602712d8 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -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 (); } }