diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-05 18:51:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-05 18:51:17 +0000 |
commit | 218e59567e1b9416603fdf10045cfb5897d9d446 (patch) | |
tree | 7bf3a45d85182ca2c8200b9f9707a0dbd23ec26e /gdb/frame.h | |
parent | ed363b1b5e3188a6e71b46e51581fb1d7e8312de (diff) | |
download | gdb-218e59567e1b9416603fdf10045cfb5897d9d446.zip gdb-218e59567e1b9416603fdf10045cfb5897d9d446.tar.gz gdb-218e59567e1b9416603fdf10045cfb5897d9d446.tar.bz2 |
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.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index bd20ba7..18c4df4 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. */ |