[2/2,gdb/python] Use GDB_PY_SET_HANDLE_EXCEPTION more often
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
Commit Message
I found a few more places where we can use GDB_PY_SET_HANDLE_EXCEPTION.
Tested on x86_64-linux.
---
gdb/python/py-breakpoint.c | 3 +--
gdb/python/py-cmd.c | 3 +--
gdb/python/py-param.c | 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
Comments
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> I found a few more places where we can use GDB_PY_SET_HANDLE_EXCEPTION.
Looks good, thanks.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
@@ -1054,8 +1054,7 @@ bppy_init (PyObject *self, PyObject *args, PyObject *kwargs)
catch (const gdb_exception &except)
{
bppy_pending_object = NULL;
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
BPPY_SET_REQUIRE_VALID ((gdbpy_breakpoint_object *) self);
@@ -541,8 +541,7 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw)
}
catch (const gdb_exception &except)
{
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
return 0;
@@ -885,8 +885,7 @@ parmpy_init (PyObject *self, PyObject *args, PyObject *kwds)
catch (const gdb_exception &except)
{
Py_DECREF (self);
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
return 0;