Replace delete_longjmp_breakpoint_cleanup with a forward_scope_exit type
authorTom Tromey <tom@tromey.com>
Wed, 23 Jan 2019 18:58:31 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 19:04:26 +0000 (19:04 +0000)
commit5419bdae559360a10044983b06c11a31de8d81f4
tree9347b273532e24024e5389a44c46f3dea4d76c52
parente587ef421eb7e009c6a69da55c269e9df45093e4
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.
gdb/ChangeLog
gdb/breakpoint.c
gdb/infcmd.c
gdb/inferior.h