Replace finish_thread_state_cleanup with a RAII class
authorPedro Alves <palves@redhat.com>
Tue, 10 Apr 2018 13:49:30 +0000 (14:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 10 Apr 2018 13:49:30 +0000 (14:49 +0100)
commit731f534f918cfaa35c20b5eb6220a8eba4819f04
tree32d4b440a20836edfca758a05a36629c745e1d54
parentd4ae1932770d9ec76f3d0a429aab45f1cb15e964
Replace finish_thread_state_cleanup with a RAII class

gdb/ChangeLog:
2018-04-10  Pedro Alves  <palves@redhat.com>

* gdbthread.h (finish_thread_state_cleanup): Delete declaration.
(scoped_finish_thread_state): New class.
* infcmd.c (run_command_1): Use it instead of finish_thread_state
cleanup.
* infrun.c (proceed, prepare_for_detach, wait_for_inferior)
(fetch_inferior_event, normal_stop): Likewise.
* thread.c (finish_thread_state_cleanup): Delete.
gdb/ChangeLog
gdb/gdbthread.h
gdb/infcmd.c
gdb/infrun.c
gdb/thread.c