diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-23 09:53:52 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-23 09:53:52 +0000 |
commit | 6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e (patch) | |
tree | 7d20e530ffd90c59b0a745d749a1afcb50f3da0d /gdb/thread.c | |
parent | 44a67aa79a7f75ab484b560b0327b21acdd97d5c (diff) | |
download | gdb-6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e.zip gdb-6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e.tar.gz gdb-6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e.tar.bz2 |
* 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/thread.c')
-rw-r--r-- | gdb/thread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index e2ec2cd..e9d6609 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -61,8 +61,6 @@ static void info_threads_command (char *, int); static void thread_apply_command (char *, int); static void restore_current_thread (ptid_t); static void prune_threads (void); -static struct cleanup *make_cleanup_restore_current_thread (ptid_t, - struct frame_id); void delete_step_resume_breakpoint (void *arg) @@ -570,7 +568,7 @@ do_restore_current_thread_cleanup (void *arg) xfree (old); } -static struct cleanup * +struct cleanup * make_cleanup_restore_current_thread (ptid_t inferior_ptid, struct frame_id a_frame_id) { |