diff options
author | Pedro Alves <palves@redhat.com> | 2018-04-10 14:49:30 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-04-10 14:49:30 +0100 |
commit | 731f534f918cfaa35c20b5eb6220a8eba4819f04 (patch) | |
tree | 32d4b440a20836edfca758a05a36629c745e1d54 /gdb/thread.c | |
parent | d4ae1932770d9ec76f3d0a429aab45f1cb15e964 (diff) | |
download | gdb-731f534f918cfaa35c20b5eb6220a8eba4819f04.zip gdb-731f534f918cfaa35c20b5eb6220a8eba4819f04.tar.gz gdb-731f534f918cfaa35c20b5eb6220a8eba4819f04.tar.bz2 |
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.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 99f3f5b..c1a8174 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1040,16 +1040,6 @@ finish_thread_state (ptid_t ptid) gdb::observers::target_resumed.notify (ptid); } -void -finish_thread_state_cleanup (void *arg) -{ - ptid_t *ptid_p = (ptid_t *) arg; - - gdb_assert (arg); - - finish_thread_state (*ptid_p); -} - /* See gdbthread.h. */ void |