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
commit85f1efe43f248d4abf0000b0663e6441535e7783 (patch)
tree4a7487a356f0eb31c3777ed586a1d808033548da /gdb/gdbthread.h
parent036c7acb86dfaa33502052ef5a10704634eeb5fc (diff)
downloadgdb-85f1efe43f248d4abf0000b0663e6441535e7783.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 */