summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-02-05 10:59:52 +0100
committerTom Tromey <tom@tromey.com>2018-02-08 11:46:55 -0700
commit8ce47547b34fddec16d1ccd801f025a56976af95 (patch)
tree6f44ae6381c071699678f22072431a66499ae59f /gdb/gdbserver/inferiors.c
parent45dd3607e24aaf515b5d75c666b351575410392b (diff)
downloadbinutils-gdb-8ce47547b34fddec16d1ccd801f025a56976af95.tar.gz
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/inferiors.c')
-rw-r--r--gdb/gdbserver/inferiors.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 600bf201bff..ad3df648f5b 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -213,18 +213,6 @@ current_process (void)
return get_thread_process (current_thread);
}
-static void
-do_restore_current_thread_cleanup (void *arg)
-{
- current_thread = (struct thread_info *) arg;
-}
-
-struct cleanup *
-make_cleanup_restore_current_thread (void)
-{
- return make_cleanup (do_restore_current_thread_cleanup, current_thread);
-}
-
/* See common/common-gdbthread.h. */
void