mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-18 00:37:28 +08:00
[gdb/python] Use GDB_PY_HANDLE_EXCEPTION more often
I found a few more places where we can use GDB_PY_HANDLE_EXCEPTION. Tested on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -972,8 +972,7 @@ gdbpy_decode_line (PyObject *self, PyObject *args)
|
||||
catch (const gdb_exception &ex)
|
||||
{
|
||||
/* We know this will always throw. */
|
||||
gdbpy_convert_exception (ex);
|
||||
return NULL;
|
||||
GDB_PY_HANDLE_EXCEPTION (ex);
|
||||
}
|
||||
|
||||
if (!sals.empty ())
|
||||
|
||||
Reference in New Issue
Block a user