aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-11-13 22:48:11 +0000
committerDaniel Jacobowitz <drow@false.org>2009-11-13 22:48:11 +0000
commit21327321a021139f296b93cc844cc562b38b7c93 (patch)
tree24b82b4b6f3bd1c9e06e44dd74b9fa34c52711a7 /gdb/mips-tdep.c
parenta103a963e04564e150dbcba4aaeae493693fbc16 (diff)
downloadfsf-binutils-gdb-21327321a021139f296b93cc844cc562b38b7c93.zip
fsf-binutils-gdb-21327321a021139f296b93cc844cc562b38b7c93.tar.gz
fsf-binutils-gdb-21327321a021139f296b93cc844cc562b38b7c93.tar.bz2
2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
* mips-tdep.c (mips_insn16_frame_this_id): Mark the outermost frame. (mips_insn32_frame_this_id): Likewise.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 9cf5057..c4d24ff 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));
}