]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/python] Eliminate GDB_PY_HANDLE_EXCEPTION
authorTom de Vries <tdevries@suse.de>
Tue, 24 Sep 2024 11:06:32 +0000 (13:06 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 24 Sep 2024 11:06:32 +0000 (13:06 +0200)
commit1ccb6f106a77893b00287bbfbaa69f22f9567d2c
treece8410fe1c17c40fbcdd084135024e0b79dcc70a
parent912bc231ab157fb05e988d8752ea348c3e65111f
[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>
23 files changed:
gdb/python/py-arch.c
gdb/python/py-breakpoint.c
gdb/python/py-connection.c
gdb/python/py-disasm.c
gdb/python/py-frame.c
gdb/python/py-gdb-readline.c
gdb/python/py-inferior.c
gdb/python/py-infthread.c
gdb/python/py-lazy-string.c
gdb/python/py-linetable.c
gdb/python/py-mi.c
gdb/python/py-objfile.c
gdb/python/py-progspace.c
gdb/python/py-record-btrace.c
gdb/python/py-record.c
gdb/python/py-stopevent.c
gdb/python/py-symbol.c
gdb/python/py-tui.c
gdb/python/py-type.c
gdb/python/py-unwind.c
gdb/python/py-value.c
gdb/python/python-internal.h
gdb/python/python.c