summaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-23 09:53:52 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-23 09:53:52 +0000
commit6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e (patch)
tree7d20e530ffd90c59b0a745d749a1afcb50f3da0d /gdb/gdbthread.h
parent44a67aa79a7f75ab484b560b0327b21acdd97d5c (diff)
downloadbinutils-gdb-6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e.tar.gz
* thread.c (make_cleanup_restore_current_thread): Make it
globally visible. * gdbthread.h (make_cleanup_restore_current_thread): Declare. * varobj.c (varobj_update): Don't save/restore frame. (c_value_of_root): Save/restore thread and frame here, using make_cleanup_restore_current_thread. * Makefile.in: Update dependecies.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r--gdb/gdbthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index f0568e071f2..e8bfde4831d 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -158,4 +158,8 @@ extern int print_thread_events;
extern void print_thread_info (struct ui_out *uiout, int thread);
+extern struct cleanup *make_cleanup_restore_current_thread (ptid_t,
+ struct frame_id);
+
+
#endif /* GDBTHREAD_H */