summaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-05 18:51:17 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-05 18:51:17 +0000
commit110f44ec0701979907256c39db5264e7e396c3c4 (patch)
treeaadad0cfcf10967471f18a0ead0f89a05226c06f /gdb/frame.h
parent0418fac0b3aa783829b027abaaf93f48269b346e (diff)
downloadgdb-110f44ec0701979907256c39db5264e7e396c3c4.tar.gz
2003-03-05 Andrew Cagney <cagney@redhat.com>
* frame.h (struct frame_info): Replace "id_unwind_cache_p" and "id_unwind_cache" with "id". (frame_id_unwind): Delete declaration. * frame.c (frame_id_unwind): Delete function. (get_prev_frame): Call the frame id unwind method directly. Store the returned next frame's ID value in NEXT_FRAME. Note that there is a problem with the wrong unwind ID being called with the wrong unwind cache.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index bd20ba7aec1..18c4df4397f 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -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);
@@ -412,9 +408,9 @@ struct frame_info
int pc_unwind_cache_p;
CORE_ADDR pc_unwind_cache;
- /* Cached copy of the previous frame's ID. */
- int id_unwind_cache_p;
- struct frame_id id_unwind_cache;
+ /* This frame's ID. Note that the frame's ID, base and PC contain
+ redundant information. */
+ struct frame_id id;
/* Pointers to the next (down, inner, younger) and previous (up,
outer, older) frame_info's in the frame cache. */