]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-03-03 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 3 Mar 2003 21:19:04 +0000 (21:19 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 3 Mar 2003 21:19:04 +0000 (21:19 +0000)
* frame.c (frame_id_unwind): Delete function.
(get_prev_frame): Use prev's unwinder to unwind the frame ID.
* frame.h (frame_id_unwind): Delete declaration.

gdb/ChangeLog
gdb/frame.c
gdb/frame.h

index 49ad68fb93c81367c4b67b2ed682426c512578e0..d091e2e1dfe0b6cc345d26b1ceb03f935ba7325f 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-03  Andrew Cagney  <cagney@redhat.com>
+
+       * frame.c (frame_id_unwind): Delete function.
+       (get_prev_frame): Use prev's unwinder to unwind the frame ID.
+       * frame.h (frame_id_unwind): Delete declaration.
+
 2003-03-03  Andrew Cagney  <cagney@redhat.com>
 
        Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
index f4e0a14e85d2cfa966e9c7fb6bcfd8aed098c05f..a8c3ce903d47d7ba520eb41bdcd76b5538d8e868 100644 (file)
@@ -145,17 +145,6 @@ frame_pc_unwind (struct frame_info *frame)
   return frame->pc_unwind_cache;
 }
 
-struct frame_id
-frame_id_unwind (struct frame_info *frame)
-{
-  if (!frame->id_unwind_cache_p)
-    {
-      frame->unwind->id (frame, &frame->unwind_cache, &frame->id_unwind_cache);
-      frame->id_unwind_cache_p = 1;
-    }
-  return frame->id_unwind_cache;
-}
-
 void
 frame_pop (struct frame_info *frame)
 {
@@ -1347,7 +1336,8 @@ get_prev_frame (struct frame_info *next_frame)
   {
     /* FIXME: cagney/2002-12-18: Instead of this hack, should just
        save the frame ID directly.  */
-    struct frame_id id = frame_id_unwind (next_frame);
+    struct frame_id id = prev_frame->unwind->id (next_frame,
+                                                &prev_frame->unwind_cache);
     /* Check that the unwound ID is valid.  As of 2003-02-24 the
        x86-64 was returning an invalid frame ID when trying to do an
        unwind a sentinel frame that belonged to a frame dummy.  */
index bd20ba7aec1ba101d151359e733a4165d422bc9f..8dd5c93341118af1a597275997e194d7932962e4 100644 (file)
@@ -310,10 +310,6 @@ extern const char *frame_map_regnum_to_name (int regnum);
 
 extern CORE_ADDR frame_pc_unwind (struct frame_info *frame);
 
-/* Unwind the frame ID.  Return an ID that uniquely identifies the
-   caller's frame.  */
-extern struct frame_id frame_id_unwind (struct frame_info *frame);
-
 /* Discard the specified frame.  Restoring the registers to the state
    of the caller.  */
 extern void frame_pop (struct frame_info *frame);