[gdb] Rewrite RETHROW_ON_TARGET_CLOSE_ERROR into function
authorTom de Vries <tdevries@suse.de>
Tue, 25 Oct 2022 09:32:41 +0000 (11:32 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 25 Oct 2022 09:32:41 +0000 (11:32 +0200)
commit47e2c30aacff6c50a2557c86cc00f411b750805b
tree4f33f3937bdc4897e6c0b81c927d523b621475ba
parenta5a0a4fd0ff536a8dbd532864cfc095a306b678c
[gdb] Rewrite RETHROW_ON_TARGET_CLOSE_ERROR into function

Recent commit b2829fcf9b5 ("[gdb] Fix rethrow exception slicing in
insert_bp_location") introduced macro RETHROW_ON_TARGET_CLOSE_ERROR.

I wrote this as a macro in order to have the rethrowing throw be part of the
same function as the catch, but as it turns out that's not necessary.

Rewrite into a function.

Tested on x86_64-linux.
gdb/breakpoint.c