binutils-gdb/gdb/python
Tom Tromey b0e7d28eae Remove 'if' from GDB_PY_HANDLE_EXCEPTION
This removes the embedded 'if' from GDB_PY_HANDLE_EXCEPTION and
GDB_PY_SET_HANDLE_EXCEPTION.  I believe this 'if' was necessary with
the old gdb try/catch macros, but it no longer is: these should only
ever be called from a 'catch' block, where it's already known that an
exception was thrown.

Simon pointed out, though, that in a few spots, these were in facts
called outside of 'catch' blocks.  This patch cleans up these spots.
I also found one spot where a redundant 'return nullptr' could be
removed.
2024-03-14 08:57:00 -06:00
..
lib/gdb Add return value to DAP scope 2024-03-08 10:50:13 -07:00
py-all-events.def Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-arch.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-auto-load.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-block.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-bpevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-breakpoint.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-cmd.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-connection.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-continueevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-dap.c Fix gdb.interrupt race 2024-02-28 09:08:16 -07:00
py-disasm.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-event-types.def Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-event.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-event.h gdb: pass frames as const frame_info_ptr & 2024-02-20 10:42:25 -05:00
py-events.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-evtregistry.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-evts.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-exitedevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-finishbreakpoint.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-frame.c gdb: pass frames as const frame_info_ptr & 2024-02-20 10:42:25 -05:00
py-framefilter.c gdb: pass frames as const frame_info_ptr & 2024-02-20 10:42:25 -05:00
py-function.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-gdb-readline.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-inferior.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-infevents.c gdb: pass frames as const frame_info_ptr & 2024-02-20 10:42:25 -05:00
py-infthread.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-instruction.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-instruction.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-lazy-string.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-linetable.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-membuf.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-mi.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-micmd.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-newobjfileevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-objfile.c Use domain_search_flags in lookup_symbol et al 2024-01-28 10:58:16 -07:00
py-param.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-prettyprint.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-progspace.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record-btrace.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record-btrace.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record-full.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record-full.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-record.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-ref.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-registers.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-signalevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-stopevent.c Export "finish" return value to Python 2024-03-08 10:50:12 -07:00
py-stopevent.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-symbol.c Rename SEARCH_ALL 2024-02-01 07:10:57 -07:00
py-symtab.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-threadevent.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-tui.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-type.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-uiout.h gdb: Buffer output streams during events that might download debuginfo 2024-01-19 00:18:00 -05:00
py-unwind.c gdb: pass frames as const frame_info_ptr & 2024-02-20 10:42:25 -05:00
py-utils.c [gdb/python] Use gdbpy_err_fetch::{type,value} as getters 2024-03-09 16:13:10 +01:00
py-value.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-varobj.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
py-xmethods.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
python-config.py
python-internal.h Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
python.c Add extension_language_ops::shutdown 2024-02-27 10:30:29 -07:00
python.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00