aboutsummaryrefslogtreecommitdiff
path: root/gdb/dummy-frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-13 16:40:25 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-13 16:40:25 +0000
commitc689142becccac9fa3b1f9833243048a50396ffe (patch)
treededb68db325ddaa0f88cde3003ff3a6413962c22 /gdb/dummy-frame.h
parent18ea5ba4f05d572ec1513a37c22544c6037b21fa (diff)
downloadgdb-c689142becccac9fa3b1f9833243048a50396ffe.zip
gdb-c689142becccac9fa3b1f9833243048a50396ffe.tar.gz
gdb-c689142becccac9fa3b1f9833243048a50396ffe.tar.bz2
2002-12-13 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_id_unwind): Declare. (struct frame_info): Add fields id_unwind, id_unwind_cache_p and id_unwind_cache. (frame_id_unwind_ftype): Declare. * frame.c (frame_id_unwind): New function. (set_unwind_by_pc): Add unwind_id parameter. Initialized. (create_new_frame, get_prev_frame): Pass id_unwind to set_unwind_by_pc. (frame_saved_regs_id_unwind): New function. (frame_saved_regs_id_unwind): New function. * dummy-frame.c (dummy_frame_id_unwind): New function. (struct dummy_frame): Add field id. (generic_push_dummy_frame): Initialize `id'. * dummy-frame.h (dummy_frame_id_unwind): Declare.
Diffstat (limited to 'gdb/dummy-frame.h')
-rw-r--r--gdb/dummy-frame.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/dummy-frame.h b/gdb/dummy-frame.h
index 7f3aee8..cfa2709 100644
--- a/gdb/dummy-frame.h
+++ b/gdb/dummy-frame.h
@@ -60,6 +60,12 @@ extern void dummy_frame_register_unwind (struct frame_info *frame,
extern CORE_ADDR dummy_frame_pc_unwind (struct frame_info *frame,
void **unwind_cache);
+/* Assuming that FRAME is a dummy, return the ID of the calling frame
+ (the frame that the dummy has the saved state of). */
+
+extern struct frame_id dummy_frame_id_unwind (struct frame_info *frame,
+ void **unwind_cache);
+
/* Does the PC fall in a dummy frame?
This function is used by "frame.c" when creating a new `struct