summaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-04-21 20:23:34 +0000
committerAndrew Cagney <cagney@redhat.com>2002-04-21 20:23:34 +0000
commit4f734ebfabf1d9497948847d8d721adce1bfe54b (patch)
tree3bfbf5e020db37860ca6984ba0317a0c371afc27 /gdb/frame.h
parentff48063c98db59f179382147d223ffe77c7612fa (diff)
downloadgdb-4f734ebfabf1d9497948847d8d721adce1bfe54b.tar.gz
* frame.h (selected_frame_level): Document as deprecated.
(frame_relative_level): Declare. * stack.c (frame_relative_level): New function. (selected_frame_level): Document as deprecated. (select_frame): Do not set the selected_frame_level. * stack.c (frame_info, record_selected_frame): Update. (frame_command, current_frame_command): Update. (up_silently_base, up_command, down_silently_base): Update. (down_command): Update. * inflow.c (kill_command): Update. * tracepoint.c (finish_tfind_command): Update. * corelow.c (core_open): Update. * thread.c (info_threads_command): Update. (do_captured_thread_select): Update. * infcmd.c (finish_command): Update. * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 4f41364d5d9..2b7bf41a239 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -160,6 +160,11 @@ extern void frame_saved_regs_zalloc (struct frame_info *);
#define FRAME_FP(fi) ((fi)->frame)
+/* Level of the frame: 0 for innermost, 1 for its caller, ...; or -1
+ for an invalid frame. */
+
+extern int frame_relative_level (struct frame_info *fi);
+
/* Define a default FRAME_CHAIN_VALID, in the form that is suitable for most
targets. If FRAME_CHAIN_VALID returns zero it means that the given frame
is the outermost one and has no caller.
@@ -184,7 +189,10 @@ extern struct frame_info *selected_frame;
0 for innermost, 1 for its caller, ...
or -1 for frame specified by address with no defined level. */
-extern int selected_frame_level;
+/* FIXME: cagney/2002-04-21: The variable `selected_frame_level' is
+ deprecated. It will dissapear `real soon now'. */
+
+extern int selected_frame_level; /* DEPRECATED */
extern struct frame_info *create_new_frame (CORE_ADDR, CORE_ADDR);