diff options
author | Tom de Vries <tdevries@suse.de> | 2024-09-24 13:06:32 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-09-24 13:06:32 +0200 |
commit | 1ccb6f106a77893b00287bbfbaa69f22f9567d2c (patch) | |
tree | ce8410fe1c17c40fbcdd084135024e0b79dcc70a /gdb/python/python-internal.h | |
parent | 912bc231ab157fb05e988d8752ea348c3e65111f (diff) | |
download | gdb-1ccb6f106a77893b00287bbfbaa69f22f9567d2c.zip gdb-1ccb6f106a77893b00287bbfbaa69f22f9567d2c.tar.gz gdb-1ccb6f106a77893b00287bbfbaa69f22f9567d2c.tar.bz2 |
[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>
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 759e305..a6ee4a9 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -933,13 +933,6 @@ private: }; /* Use this in a 'catch' block to convert the exception to a Python - exception and return nullptr. */ -#define GDB_PY_HANDLE_EXCEPTION(Exception) \ - do { \ - return gdbpy_handle_gdb_exception (nullptr, Exception); \ - } while (0) - -/* Use this in a 'catch' block to convert the exception to a Python exception and return -1. */ #define GDB_PY_SET_HANDLE_EXCEPTION(Exception) \ do { \ |