This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/commit] Remove selected_frame_level
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com, Keith Seitz <keiths at redhat dot com>
- Date: Fri, 26 Apr 2002 01:04:16 -0400
- Subject: [patch/commit] Remove selected_frame_level
FYI,
I've committed the attached. It finishes off the elimination of
selected_frame_level.
(Thanks to keith for zapping the insight bits)
Andrew
2002-04-26 Andrew Cagney <ac131313@redhat.com>
* stack.c (selected_frame_level):
(select_frame): Do not set selected_frame_level.
* frame.h (selected_frame_level): Delete declaration.
Index: frame.h
===================================================================
RCS file: /cvs/src/src/gdb/frame.h,v
retrieving revision 1.14
diff -u -r1.14 frame.h
--- frame.h 26 Apr 2002 03:37:42 -0000 1.14
+++ frame.h 26 Apr 2002 04:55:28 -0000
@@ -189,11 +189,6 @@
0 for innermost, 1 for its caller, ...
or -1 for frame specified by address with no defined 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);
extern void flush_cached_frames (void);
Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.34
diff -u -r1.34 stack.c
--- stack.c 21 Apr 2002 20:23:33 -0000 1.34
+++ stack.c 26 Apr 2002 04:55:32 -0000
@@ -119,11 +119,6 @@
0 for innermost, 1 for its caller, ...
or -1 for frame specified by address with no defined level. */
-/* FIXME: cagney/2002-04-21: The variable `selected_frame_level' is
- deprecated. It will dissapear `real soon now'. */
-
-int selected_frame_level; /* DEPRECATED */
-
/* Level of the selected frame: 0 for innermost, 1 for its caller, ...
or -1 for NULL frame. */
@@ -1473,9 +1468,6 @@
register struct symtab *s;
selected_frame = fi;
- /* FIXME: cagney/2002-04-21: The variable `selected_frame_level' is
- deprecated. It will dissapear `real soon now'. */
- selected_frame_level = level; /* DEPRECATED */
/* FIXME: cagney/2002-04-05: It can't be this easy (and looking at
the increasingly complex list of checkes, it wasn't)! GDB is
dragging around, and constantly updating, the global variable