aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2cfi.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-07 22:53:09 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-07 22:53:09 +0000
commit2d75187b9e6fa5ec17ed9cf92367b2d9840518fd (patch)
treeec9f1070071efeacdf7fe103e037d00d2dc8ecb4 /gdb/dwarf2cfi.c
parent75778ec42f949f47868a62ff0ca84204978a8b54 (diff)
downloadfsf-binutils-gdb-2d75187b9e6fa5ec17ed9cf92367b2d9840518fd.zip
fsf-binutils-gdb-2d75187b9e6fa5ec17ed9cf92367b2d9840518fd.tar.gz
fsf-binutils-gdb-2d75187b9e6fa5ec17ed9cf92367b2d9840518fd.tar.bz2
2003-01-07 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_get_frame_context): New function. (deprecated_set_frame_context): New function. * frame.h (deprecated_get_frame_context): Declare. (deprecated_set_frame_context): Declare. * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context. (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
Diffstat (limited to 'gdb/dwarf2cfi.c')
-rw-r--r--gdb/dwarf2cfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2cfi.c b/gdb/dwarf2cfi.c
index 22b9983..a2ce1a5 100644
--- a/gdb/dwarf2cfi.c
+++ b/gdb/dwarf2cfi.c
@@ -156,7 +156,7 @@ enum ptr_encoding
PE_funcrel = DW_EH_PE_funcrel
};
-#define UNWIND_CONTEXT(fi) ((struct context *) (fi->context))
+#define UNWIND_CONTEXT(fi) ((struct context *) (deprecated_get_frame_context (fi)))
static struct cie_unit *cie_chunks;
@@ -1770,7 +1770,7 @@ cfi_init_extra_frame_info (int fromleaf, struct frame_info *fi)
unwind_tmp_obstack_init ();
fs = frame_state_alloc ();
- fi->context = frame_obstack_alloc (sizeof (struct context));
+ deprecated_set_frame_context (fi, frame_obstack_alloc (sizeof (struct context)));
UNWIND_CONTEXT (fi)->reg =
frame_obstack_alloc (sizeof (struct context_reg) * NUM_REGS);
memset (UNWIND_CONTEXT (fi)->reg, 0,