This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] get_prev_frame() -> get_next_frame()


Hello,

The attached patch gets the code that searches for saved registers to do 
the search in the correct direction.

This will affect the MIPS and possibly a few other targets.  If a few 
things related to up/down and info registers mysteriously start working, 
this one line patch is it :-)

Committed,
Andrew
2002-04-17  Andrew Cagney  <ac131313@redhat.com>

	* frame.c (find_saved_register): Find saved registers in the next
	not prev frame.
	Fix PR gdb/365.

Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.6
diff -u -r1.6 frame.c
--- frame.c	12 Apr 2002 18:18:57 -0000	1.6
+++ frame.c	17 Apr 2002 21:30:07 -0000
@@ -83,7 +83,7 @@
   while (1)
     {
       QUIT;
-      frame1 = get_prev_frame (frame1);
+      frame1 = get_next_frame (frame1);
       if (frame1 == 0 || frame1 == frame)
 	break;
       FRAME_INIT_SAVED_REGS (frame1);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]