* mips-tdep.c (mips_init_extra_frame_info): Return early for
authorKevin Buettner <kevinb@redhat.com>
Tue, 28 Jan 2003 16:31:11 +0000 (16:31 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 28 Jan 2003 16:31:11 +0000 (16:31 +0000)
dummy frames.

gdb/ChangeLog
gdb/mips-tdep.c

index 216b34f147f6d7460634d6d7aeab2eba835de17d..9bbf775948bb5f6aa60fdf2502e952e4ebfc8855 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-28  Kevin Buettner  <kevinb@redhat.com>
+
+       * mips-tdep.c (mips_init_extra_frame_info): Return early for
+       dummy frames.
+
 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
 
        * sentinel-frame.h, sentinel-frame.c: New files.
index 04db9378e1f54c2392cd0e8985a5b643b59179c6..5898e579f1cb8c9fb9a3da8dd5dbc9956a585f37 100644 (file)
@@ -2468,9 +2468,13 @@ static void
 mips_init_extra_frame_info (int fromleaf, struct frame_info *fci)
 {
   int regnum;
+  mips_extra_func_info_t proc_desc;
+
+  if (get_frame_type (fci) == DUMMY_FRAME)
+    return;
 
   /* Use proc_desc calculated in frame_chain */
-  mips_extra_func_info_t proc_desc =
+  proc_desc =
     get_next_frame (fci)
     ? cached_proc_desc
     : find_proc_desc (get_frame_pc (fci), get_next_frame (fci), 1);