From 21327321a021139f296b93cc844cc562b38b7c93 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 13 Nov 2009 22:48:11 +0000 Subject: [PATCH] 2009-11-13 Maciej W. Rozycki * mips-tdep.c (mips_insn16_frame_this_id): Mark the outermost frame. (mips_insn32_frame_this_id): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/mips-tdep.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 189b026b58d..aaa0af46218 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-11-13 Maciej W. Rozycki + + * mips-tdep.c (mips_insn16_frame_this_id): Mark the outermost + frame. + (mips_insn32_frame_this_id): Likewise. + 2009-11-13 Maciej W. Rozycki * elfread.c (elf_symtab_read): Only mark a minimal symbol as diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 9cf5057567b..c4d24ffba63 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1814,6 +1814,9 @@ mips_insn16_frame_this_id (struct frame_info *this_frame, void **this_cache, { struct mips_frame_cache *info = mips_insn16_frame_cache (this_frame, this_cache); + /* This marks the outermost frame. */ + if (info->base == 0) + return; (*this_id) = frame_id_build (info->base, get_frame_func (this_frame)); } @@ -2163,6 +2166,9 @@ mips_insn32_frame_this_id (struct frame_info *this_frame, void **this_cache, { struct mips_frame_cache *info = mips_insn32_frame_cache (this_frame, this_cache); + /* This marks the outermost frame. */ + if (info->base == 0) + return; (*this_id) = frame_id_build (info->base, get_frame_func (this_frame)); } -- 2.30.2