aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-exitedevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-exitedevent.c')
-rw-r--r--gdb/python/py-exitedevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-exitedevent.c b/gdb/python/py-exitedevent.c
index 9912b26..b19cc95 100644
--- a/gdb/python/py-exitedevent.c
+++ b/gdb/python/py-exitedevent.c
@@ -30,7 +30,7 @@ create_exited_event_object (const LONGEST *exit_code, struct inferior *inf)
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;