33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
|
2008-05-20 Pedro Alves <pedro@codesourcery.com>
|
||
|
|
||
|
* frame.c (get_prev_frame_1): Build frame id before setting
|
||
|
this_frame->prev_p, not after.
|
||
|
|
||
|
---
|
||
|
gdb/frame.c | 6 +++++-
|
||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||
|
|
||
|
Index: src/gdb/frame.c
|
||
|
===================================================================
|
||
|
--- src.orig/gdb/frame.c 2008-05-20 22:41:07.000000000 +0100
|
||
|
+++ src/gdb/frame.c 2008-05-20 22:49:59.000000000 +0100
|
||
|
@@ -1179,13 +1179,17 @@ get_prev_frame_1 (struct frame_info *thi
|
||
|
}
|
||
|
return this_frame->prev;
|
||
|
}
|
||
|
+
|
||
|
+ /* If the frame id hasn't been built yet, it must be done before
|
||
|
+ setting a stop reason. */
|
||
|
+ this_id = get_frame_id (this_frame);
|
||
|
+
|
||
|
this_frame->prev_p = 1;
|
||
|
this_frame->stop_reason = UNWIND_NO_REASON;
|
||
|
|
||
|
/* Check that this frame's ID was valid. If it wasn't, don't try to
|
||
|
unwind to the prev frame. Be careful to not apply this test to
|
||
|
the sentinel frame. */
|
||
|
- this_id = get_frame_id (this_frame);
|
||
|
if (this_frame->level >= 0 && !frame_id_p (this_id))
|
||
|
{
|
||
|
if (frame_debug)
|