I found a few more places where we can use GDB_PY_SET_HANDLE_EXCEPTION.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
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);
}
catch (const gdb_exception &except)
{
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
return 0;
}
catch (const gdb_exception &except)
{
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
if (PyErr_Occurred ())
catch (const gdb_exception &except)
{
Py_DECREF (self);
- gdbpy_convert_exception (except);
- return -1;
+ GDB_PY_SET_HANDLE_EXCEPTION (except);
}
return 0;