From 7807aa614ff5cc5aba850e1586ce1a84e5392067 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 19 Aug 2002 23:22:17 +0000 Subject: [PATCH] 2002-08-14 Michael Snyder * mips-tdep.c (mips_frame_chain): Check for call-dummy frames. --- gdb/ChangeLog | 4 ++++ gdb/mips-tdep.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3bad3327056..034254fcef8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-08-14 Michael Snyder + + * mips-tdep.c (mips_frame_chain): Check for call-dummy frames. + 2002-08-19 Elena Zannoni * rs6000-tdep.c (struct reg): Add field to indicate a pseudo diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 6ced9fc337e..296dea672c4 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -2385,9 +2385,11 @@ mips_frame_chain (struct frame_info *frame) we loop forever if we see a zero size frame. */ if (PROC_FRAME_REG (proc_desc) == SP_REGNUM && PROC_FRAME_OFFSET (proc_desc) == 0 - /* The previous frame from a sigtramp frame might be frameless - and have frame size zero. */ - && !frame->signal_handler_caller) + /* The previous frame from a sigtramp frame might be frameless + and have frame size zero. */ + && !frame->signal_handler_caller + /* Check if this is a call dummy frame. */ + && frame->pc != mips_call_dummy_address ()) return 0; else return get_frame_pointer (frame, proc_desc); -- 2.30.2