aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-16 20:05:56 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-16 20:05:56 +0000
commit870b3035a486dab29b2169733cb56f40c82a8c43 (patch)
tree6804be7af0afb4bb5098f354e7cbd3679931ee2e /gdb/frame.h
parent63d47a7dccd1967c17ed12a2d585e48ca26d16bc (diff)
downloadfsf-binutils-gdb-870b3035a486dab29b2169733cb56f40c82a8c43.zip
fsf-binutils-gdb-870b3035a486dab29b2169733cb56f40c82a8c43.tar.gz
fsf-binutils-gdb-870b3035a486dab29b2169733cb56f40c82a8c43.tar.bz2
2003-06-16 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_get_next_frame_hack): Declare. * frame.c (legacy_saved_regs_prev_register): Only require DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that there are always saved regs. (deprecated_generic_get_saved_register): Do not require DEPRECATED_FRAME_INIT_SAVED_REGS. (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN, use frame ID unwind instead. (deprecated_get_next_frame_hack): New function.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index ecca9f1..14da014 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -154,6 +154,13 @@ extern void select_frame (struct frame_info *);
extern struct frame_info *get_prev_frame (struct frame_info *);
extern struct frame_info *get_next_frame (struct frame_info *);
+/* Given a FRAME, return the true next (more inner, younger) frame.
+ This one exposes the sentinel frame and, hence, never returns NULL.
+ It is here strictly to help old targets in their migration path to
+ the new frame code - the new code requires the NEXT, and not THIS
+ frame. */
+extern struct frame_info *deprecated_get_next_frame_hack (struct frame_info *);
+
/* Given a frame's ID, relocate the frame. Returns NULL if the frame
is not found. */
extern struct frame_info *frame_find_by_id (struct frame_id id);