Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* varobj bug?
@ 2009-06-07 23:40 Pedro Alves
  2009-06-09 21:11 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2009-06-07 23:40 UTC (permalink / raw)
  To: gdb-patches

[ Just stumbled on this while reading this code. ]

Isn't the patch below a bug fix?  FI possibly points at
the frame returned by:

 fi = find_frame_addr_in_frame_chain (frame);

not the originally selected frame.

Maybe this code should be using make_cleanup_restore_current_thread?

-- 
Pedro Alves

---
 gdb/varobj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: src/gdb/varobj.c
===================================================================
--- src.orig/gdb/varobj.c	2009-06-08 00:37:55.000000000 +0100
+++ src/gdb/varobj.c	2009-06-08 00:38:47.000000000 +0100
@@ -577,7 +577,7 @@ varobj_create (char *objname,
       var->root->rootvar = var;
 
       /* Reset the selected frame */
-      if (fi != NULL)
+      if (old_fi != NULL)
 	select_frame (old_fi);
     }
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-10 23:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07 23:40 varobj bug? Pedro Alves
2009-06-09 21:11 ` Tom Tromey
2009-06-10 23:41   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox