2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
* python/py-frame.c (frame_info_to_frame_object): Use gdbpy_convert_exception. Clean up Python object on failure.
This commit is contained in:
parent
562fc84992
commit
1efd76617b
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
|
||||
|
||||
* python/py-frame.c (frame_info_to_frame_object): Use
|
||||
gdbpy_convert_exception. Clean up Python object on failure.
|
||||
|
||||
2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
|
||||
|
||||
* python/lib/gdb/command/frame_filters.py
|
||||
|
|
|
@ -333,8 +333,12 @@ frame_info_to_frame_object (struct frame_info *frame)
|
|||
}
|
||||
frame_obj->gdbarch = get_frame_arch (frame);
|
||||
}
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
if (except.reason < 0)
|
||||
{
|
||||
Py_DECREF (frame_obj);
|
||||
gdbpy_convert_exception (except);
|
||||
return NULL;
|
||||
}
|
||||
return (PyObject *) frame_obj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue