This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Delete get/set frame context
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 22 Nov 2003 17:55:20 -0500
- Subject: [ob] Delete get/set frame context
This code is no longer used (thanks to MarkK's CFI rewrite), deleted.
Andrew
2003-11-22 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_get_frame_context): Delete function.
(deprecated_set_frame_prev_hack): Delete function.
(struct frame_info): Delete member "context".
* frame.h (deprecated_get_frame_context): Delete declaration.
(deprecated_set_frame_context): Delete declaration.
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.148
diff -u -r1.148 frame.c
--- frame.c 19 Nov 2003 17:35:46 -0000 1.148
+++ frame.c 22 Nov 2003 22:49:27 -0000
@@ -86,10 +86,6 @@
initialized by DEPRECATED_INIT_EXTRA_FRAME_INFO */
struct frame_extra_info *extra_info;
- /* If dwarf2 unwind frame informations is used, this structure holds
- all related unwind data. */
- struct context *context;
-
/* The frame's low-level unwinder and corresponding cache. The
low-level unwinder is responsible for unwinding register values
for the previous frame. The low-level unwind methods are
@@ -2246,26 +2242,6 @@
struct frame_info *next)
{
fi->next = next;
-}
-
-void
-deprecated_set_frame_prev_hack (struct frame_info *fi,
- struct frame_info *prev)
-{
- fi->prev = prev;
-}
-
-struct context *
-deprecated_get_frame_context (struct frame_info *fi)
-{
- return fi->context;
-}
-
-void
-deprecated_set_frame_context (struct frame_info *fi,
- struct context *context)
-{
- fi->context = context;
}
struct frame_info *
Index: frame.h
===================================================================
RCS file: /cvs/src/src/gdb/frame.h,v
retrieving revision 1.112
diff -u -r1.112 frame.h
--- frame.h 24 Oct 2003 17:37:03 -0000 1.112
+++ frame.h 22 Nov 2003 22:49:43 -0000
@@ -738,18 +738,6 @@
extern void deprecated_set_frame_prev_hack (struct frame_info *fi,
struct frame_info *prev);
-/* FIXME: cagney/2003-01-07: Instead of the dwarf2cfi having its own
- dedicated `struct frame_info . context' field, the code should use
- the per frame `unwind_cache' that is passed to the
- frame_pc_unwind(), frame_register_unwind() and frame_id_unwind()
- methods.
-
- See "dummy-frame.c" for an example of how a cfi-frame object can be
- implemented using this. */
-extern struct context *deprecated_get_frame_context (struct frame_info *fi);
-extern void deprecated_set_frame_context (struct frame_info *fi,
- struct context *context);
-
/* Return non-zero if the architecture is relying on legacy frame
code. */
extern int legacy_frame_p (struct gdbarch *gdbarch);