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/py-lazy-string.c | |
parent | 912bc231ab157fb05e988d8752ea348c3e65111f (diff) | |
download | binutils-1ccb6f106a77893b00287bbfbaa69f22f9567d2c.zip binutils-1ccb6f106a77893b00287bbfbaa69f22f9567d2c.tar.gz binutils-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/py-lazy-string.c')
-rw-r--r-- | gdb/python/py-lazy-string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-lazy-string.c b/gdb/python/py-lazy-string.c index 67b7a33..4898a1f 100644 --- a/gdb/python/py-lazy-string.c +++ b/gdb/python/py-lazy-string.c @@ -148,7 +148,7 @@ stpy_convert_to_value (PyObject *self, PyObject *args) } catch (const gdb_exception &except) { - GDB_PY_HANDLE_EXCEPTION (except); + return gdbpy_handle_gdb_exception (nullptr, except); } return result; @@ -311,7 +311,7 @@ stpy_str (PyObject *self) } catch (const gdb_exception &exc) { - GDB_PY_HANDLE_EXCEPTION (exc); + return gdbpy_handle_gdb_exception (nullptr, exc); } return host_string_to_python_string (stream.c_str ()).release (); |