This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix an off-by-one frame bug
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 Mar 2004 18:45:04 -0500
- Subject: [commit] Fix an off-by-one frame bug
FYI,
Spotted this think-o. It only affects an architecture part way through
a frame conversion (which would explain why no one noticed).
committed,
Andrew
2004-03-17 Andrew Cagney <cagney@redhat.com>
* frame.c (legacy_get_prev_frame): Pass correct frame to
frame_unwind_find_by_frame.
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.162
diff -u -r1.162 frame.c
--- frame.c 16 Feb 2004 21:49:21 -0000 1.162
+++ frame.c 17 Mar 2004 23:42:39 -0000
@@ -1493,7 +1493,7 @@
to the new frame code. Implement FRAME_CHAIN the way the
new frame will. */
/* Find PREV frame's unwinder. */
- prev->unwind = frame_unwind_find_by_frame (this_frame->next);
+ prev->unwind = frame_unwind_find_by_frame (this_frame);
/* FIXME: cagney/2003-04-02: Rather than storing the frame's
type in the frame, the unwinder's type should be returned
directly. Unfortunately, legacy code, called by