Remove delete_just_stopped_threads_infrun_breakpoints_cleanup
authorTom Tromey <tom@tromey.com>
Wed, 23 Jan 2019 18:58:32 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 19:05:07 +0000 (19:05 +0000)
commit4c41382ac101f10071f92074bab7c33242ef5b15
tree56482e9c2259aa8f8e32f55e63dc0d68b9457073
parent89f8fb50fa16b0ef510dcd6de9088cee9820116d
Remove delete_just_stopped_threads_infrun_breakpoints_cleanup

v3: sorted earlier in the series, and replaces the cleanup in
fetch_inferior_event here too instead of in some other patch.

This removes delete_just_stopped_threads_infrun_breakpoints_cleanup,
replacing it with uses of scope_exit.

gdb/ChangeLog:
2019-01-23  Tom Tromey  <tom@tromey.com>
    Pedro Alves  <palves@redhat.com>

* infrun.c: Include "common/scope-exit.h"
(delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
(wait_for_inferior): Use SCOPE_EXIT.
(fetch_inferior_event): Use scope_exit.
gdb/ChangeLog
gdb/infrun.c