This changes gdb to avoid PyLong_FromLongLong, preferring to use
gdb_py_object_from_longest instead.
gdb/ChangeLog
2020-09-15 Tom Tromey <tromey@adacore.com>
* python/py-infevents.c (create_register_changed_event_object):
Use gdb_py_object_from_longest.
* python/py-exitedevent.c (create_exited_event_object): Use
gdb_py_object_from_longest.
+2020-09-15 Tom Tromey <tromey@adacore.com>
+
+ * python/py-infevents.c (create_register_changed_event_object):
+ Use gdb_py_object_from_longest.
+ * python/py-exitedevent.c (create_exited_event_object): Use
+ gdb_py_object_from_longest.
+
2020-09-15 Tom Tromey <tromey@adacore.com>
* python/python.c (gdbpy_parameter_value): Use
if (exit_code)
{
- gdbpy_ref<> exit_code_obj (PyLong_FromLongLong (*exit_code));
+ gdbpy_ref<> exit_code_obj = gdb_py_object_from_longest (*exit_code);
if (exit_code_obj == NULL)
return NULL;
if (evpy_add_attribute (event.get (), "frame", frame_obj.get ()) < 0)
return NULL;
- gdbpy_ref<> regnum_obj (PyLong_FromLongLong (regnum));
+ gdbpy_ref<> regnum_obj = gdb_py_object_from_longest (regnum);
if (regnum_obj == NULL)
return NULL;