[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:
Tom de Vries
2024-08-27 09:20:18 +02:00
parent b5070480d7
commit 2f8cd40c37
12 changed files with 14 additions and 29 deletions

View File

@@ -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 ())