mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-18 16:57:56 +08:00
[gdb/python] Eliminate GDB_PY_HANDLE_EXCEPTION
Result of:
...
$ search="GDB_PY_HANDLE_EXCEPTION ("
$ replace="return gdbpy_handle_gdb_exception (nullptr, "
$ sed -i \
"s/$search/$replace/" \
gdb/python/*.c
...
Also remove the now unused GDB_PY_HANDLE_EXCEPTION.
No functional changes.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -104,7 +104,7 @@ thpy_get_details (PyObject *self, void *ignore)
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
return gdbpy_handle_gdb_exception (nullptr, except);
|
||||
}
|
||||
if (extra_info == nullptr)
|
||||
Py_RETURN_NONE;
|
||||
@@ -212,7 +212,7 @@ thpy_get_ptid_string (PyObject *self, void *closure)
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
return gdbpy_handle_gdb_exception (nullptr, except);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ thpy_switch (PyObject *self, PyObject *args)
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
return gdbpy_handle_gdb_exception (nullptr, except);
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
@@ -330,7 +330,7 @@ thpy_thread_handle (PyObject *self, PyObject *args)
|
||||
}
|
||||
catch (const gdb_exception &except)
|
||||
{
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
return gdbpy_handle_gdb_exception (nullptr, except);
|
||||
}
|
||||
|
||||
if (hv.size () == 0)
|
||||
|
||||
Reference in New Issue
Block a user