aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-07 17:26:38 +0000
committerTom Tromey <tromey@redhat.com>2010-07-07 17:26:38 +0000
commitac56253ddece35aff4402b848f88ba40856102b1 (patch)
tree94ef29797734b6d85d58e0b0938657e2666832f6 /gdb/dwarf2expr.h
parent0cf6dd1543299e30c82397ef49d00b32af911a63 (diff)
downloadgdb-ac56253ddece35aff4402b848f88ba40856102b1.zip
gdb-ac56253ddece35aff4402b848f88ba40856102b1.tar.gz
gdb-ac56253ddece35aff4402b848f88ba40856102b1.tar.bz2
* dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
LOC_COMPUTED symbol. * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. (dwarf2_loc_desc_needs_frame): Likewise. (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add 'offset' argument. (struct dwarf2_frame_cache) <text_offset>: New field. (dwarf2_frame_cache): Set new field. (dwarf2_frame_prev_register): Update. (dwarf2_frame_sniffer): Update. (dwarf2_frame_base_sniffer): Update. (dwarf2_frame_find_fde): Add 'out_offset' argument.
Diffstat (limited to 'gdb/dwarf2expr.h')
-rw-r--r--gdb/dwarf2expr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h
index 31381c0..61b8f00 100644
--- a/gdb/dwarf2expr.h
+++ b/gdb/dwarf2expr.h
@@ -75,6 +75,9 @@ struct dwarf_expr_context
/* Target address size in bytes. */
int addr_size;
+ /* Offset used to relocate DW_OP_addr argument. */
+ CORE_ADDR offset;
+
/* An opaque argument provided by the caller, which will be passed
to all of the callback functions. */
void *baton;