This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] get_prev_frame() -> get_next_frame()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 Apr 2002 17:53:45 -0400
- Subject: [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);