2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
authorDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:48:11 +0000 (22:48 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:48:11 +0000 (22:48 +0000)
* mips-tdep.c (mips_insn16_frame_this_id): Mark the outermost
frame.
(mips_insn32_frame_this_id): Likewise.

gdb/ChangeLog
gdb/mips-tdep.c

index 189b026b58def83b16fe027aa2897fa234b3be02..aaa0af46218f48a04d8dce87fb25e9da73b2b745 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2009-11-13  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * elfread.c (elf_symtab_read): Only mark a minimal symbol as
index 9cf5057567bbbd8b84850984a7edaf8a519fb36f..c4d24ffba6311ae0c4ef4234d8479752800e5e0e 100644 (file)
@@ -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));
 }
 
This page took 0.038665 seconds and 4 git commands to generate.