From 6208b47d6c2552d1dd81d85b8b8ce350ea9fd09e Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sun, 23 Mar 2008 09:53:52 +0000 Subject: * 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. --- gdb/thread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/thread.c') diff --git a/gdb/thread.c b/gdb/thread.c index e2ec2cdd4f8..e9d6609fa74 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) { -- cgit v1.2.1