]> Git Repo - binutils.git/blobdiff - gdb/dummy-frame.c
2003-01-16 Andrew Cagney <[email protected]>
[binutils.git] / gdb / dummy-frame.c
index fab10c08e021f04f004350a0e0004fafd6043cea..99d388df92a911b335908d9dac471907ffb38031 100644 (file)
@@ -345,16 +345,17 @@ dummy_frame_pc_unwind (struct frame_info *frame,
 }
 
 
-struct frame_id
-dummy_frame_id_unwind (struct frame_info *frame,
-                      void **cache)
+void
+dummy_frame_id_unwind (struct frame_info *frame, void **cache,
+                      struct frame_id *id)
 {
   struct dummy_frame *dummy = cached_find_dummy_frame (frame, cache);
   /* Oops!  In a dummy-frame but can't find the stack dummy.  Pretend
      that the frame doesn't unwind.  Should this function instead
      return a has-no-caller indication?  */
   if (dummy == NULL)
-    return null_frame_id;
-  return dummy->id;
+    (*id) = null_frame_id;
+  else
+    (*id) = dummy->id;
 }
 
This page took 0.023311 seconds and 4 git commands to generate.