diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-23 18:58:31 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2019-01-23 19:04:26 +0000 |
commit | 5419bdae559360a10044983b06c11a31de8d81f4 (patch) | |
tree | 9347b273532e24024e5389a44c46f3dea4d76c52 /gdb/inferior.h | |
parent | e587ef421eb7e009c6a69da55c269e9df45093e4 (diff) | |
download | binutils-5419bdae559360a10044983b06c11a31de8d81f4.zip binutils-5419bdae559360a10044983b06c11a31de8d81f4.tar.gz binutils-5419bdae559360a10044983b06c11a31de8d81f4.tar.bz2 |
Replace delete_longjmp_breakpoint_cleanup with a forward_scope_exit type
This removes delete_longjmp_breakpoint_cleanup in favor of forward_scope_exit.
gdb/ChangeLog:
2019-01-23 Tom Tromey <tom@tromey.com>
Andrew Burgess <andrew.burgess@embecosm.com>
Pedro Alves <palves@redhat.com>
* breakpoint.c (until_break_command): Use
delete_longjmp_breakpoint_cleanup class.
* infcmd.c (delete_longjmp_breakpoint_cleanup): Remove function.
(until_next_command): Use delete_longjmp_breakpoint_cleanup class.
* inferior.h: Include forward-scope-exit.h.
(delete_longjmp_breakpoint_cleanup): Replace function declaration
with FORWARD_SCOPE_EXIT type.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index a82df1a..cadaaed 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -51,6 +51,7 @@ struct thread_info; #include "symfile-add-flags.h" #include "common/refcounted-object.h" +#include "common/forward-scope-exit.h" #include "common-inferior.h" #include "gdbthread.h" @@ -198,7 +199,8 @@ extern void continue_1 (int all_threads); extern void interrupt_target_1 (int all_threads); -extern void delete_longjmp_breakpoint_cleanup (void *arg); +using delete_longjmp_breakpoint_cleanup + = FORWARD_SCOPE_EXIT (delete_longjmp_breakpoint); extern void detach_command (const char *, int); |