diff options
Diffstat (limited to 'gdb/python/py-unwind.c')
-rw-r--r-- | gdb/python/py-unwind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index d1b63ad..b7821b5 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -177,7 +177,7 @@ pyuw_object_attribute_to_pointer (PyObject *pyo, const char *attr_name, if (PyObject_HasAttrString (pyo, attr_name)) { - gdbpy_ref pyo_value (PyObject_GetAttrString (pyo, attr_name)); + gdbpy_ref<> pyo_value (PyObject_GetAttrString (pyo, attr_name)); if (pyo_value != NULL && pyo_value != Py_None) { @@ -515,7 +515,7 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, /* Create PendingFrame instance to pass to sniffers. */ pending_frame_object *pfo = PyObject_New (pending_frame_object, &pending_frame_object_type); - gdbpy_ref pyo_pending_frame ((PyObject *) pfo); + gdbpy_ref<> pyo_pending_frame ((PyObject *) pfo); if (pyo_pending_frame == NULL) { gdbpy_print_stack (); @@ -535,15 +535,15 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, gdbpy_print_stack (); return 0; } - gdbpy_ref pyo_execute (PyObject_GetAttrString (gdb_python_module, - "execute_unwinders")); + gdbpy_ref<> pyo_execute (PyObject_GetAttrString (gdb_python_module, + "execute_unwinders")); if (pyo_execute == NULL) { gdbpy_print_stack (); return 0; } - gdbpy_ref pyo_unwind_info + gdbpy_ref<> pyo_unwind_info (PyObject_CallFunctionObjArgs (pyo_execute.get (), pyo_pending_frame.get (), NULL)); if (pyo_unwind_info == NULL) |