From 0e100dab2eb07e9fc9ca155f87172d02439b64cb Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 1 May 2004 19:35:22 +0000 Subject: 2004-05-01 Andrew Cagney * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME. * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead of frame_relative_level. * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type to SENTINEL_FRAME. * frame.h (enum frame_type): Add SENTINEL_FRAME. * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to frame_relative_level. --- gdb/dummy-frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/dummy-frame.c') diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index af8e001..216db67 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -353,7 +353,7 @@ dummy_frame_this_id (struct frame_info *next_frame, determine the dummy frame's ID. */ (*this_id) = gdbarch_unwind_dummy_id (current_gdbarch, next_frame); } - else if (frame_relative_level (next_frame) < 0) + else if (get_frame_type (next_frame) == SENTINEL_FRAME) { /* We're unwinding a sentinel frame, the PC of which is pointing at a stack dummy. Fake up the dummy frame's ID using the -- cgit v1.1