diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:48:11 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-11-13 22:48:11 +0000 |
commit | 21327321a021139f296b93cc844cc562b38b7c93 (patch) | |
tree | 24b82b4b6f3bd1c9e06e44dd74b9fa34c52711a7 /gdb/mips-tdep.c | |
parent | a103a963e04564e150dbcba4aaeae493693fbc16 (diff) | |
download | gdb-21327321a021139f296b93cc844cc562b38b7c93.zip gdb-21327321a021139f296b93cc844cc562b38b7c93.tar.gz 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.c | 6 |
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)); } |