aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-12-22 11:43:26 -0700
committerTom Tromey <tom@tromey.com>2024-03-14 08:57:00 -0600
commitb0e7d28eae1fa1a91932e47d8cf5decf96c2bc59 (patch)
tree91e5771f2592527303d2fcfc38dc3a87cb738f07 /gdb/ax-gdb.c
parent9a03f2185347bd8f20da9bf535bc68a8d0f18ce8 (diff)
downloadgdb-b0e7d28eae1fa1a91932e47d8cf5decf96c2bc59.zip
gdb-b0e7d28eae1fa1a91932e47d8cf5decf96c2bc59.tar.gz
gdb-b0e7d28eae1fa1a91932e47d8cf5decf96c2bc59.tar.bz2
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.
Diffstat (limited to 'gdb/ax-gdb.c')
0 files changed, 0 insertions, 0 deletions