diff options
author | Tom Tromey <tom@tromey.com> | 2018-02-05 10:59:52 +0100 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-02-08 11:46:55 -0700 |
commit | 8ce47547b34fddec16d1ccd801f025a56976af95 (patch) | |
tree | 6f44ae6381c071699678f22072431a66499ae59f /gdb/gdbserver/gdbthread.h | |
parent | 45dd3607e24aaf515b5d75c666b351575410392b (diff) | |
download | binutils-8ce47547b34fddec16d1ccd801f025a56976af95.zip binutils-8ce47547b34fddec16d1ccd801f025a56976af95.tar.gz binutils-8ce47547b34fddec16d1ccd801f025a56976af95.tar.bz2 |
Remove make_cleanup_restore_current_thread from gdbserver
This removes make_cleanup_restore_current_thread from gdbserver,
replacing it with a use of scoped_restore.
2018-02-08 Tom Tromey <tom@tromey.com>
* linux-low.c (install_software_single_step_breakpoints): Use
make_scoped_restore.
* inferiors.c (make_cleanup_restore_current_thread): Remove.
(do_restore_current_thread_cleanup): Remove.
* gdbthread.h (make_cleanup_restore_current_thread): Don't
declare.
Diffstat (limited to 'gdb/gdbserver/gdbthread.h')
-rw-r--r-- | gdb/gdbserver/gdbthread.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/gdbserver/gdbthread.h b/gdb/gdbserver/gdbthread.h index 9a8c72e..0edf870 100644 --- a/gdb/gdbserver/gdbthread.h +++ b/gdb/gdbserver/gdbthread.h @@ -224,7 +224,4 @@ lwpid_of (const thread_info *thread) return thread->id.lwp (); } -/* Create a cleanup to restore current_thread. */ -struct cleanup *make_cleanup_restore_current_thread (void); - #endif /* GDB_THREAD_H */ |