aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-25 16:41:46 +0000
committerTom Tromey <tromey@redhat.com>2010-05-25 16:41:46 +0000
commit0d45f56e4700225d5789b60da9ea3f082bb5e23d (patch)
tree1af7b8f88e4f8e21d13990d34d4d359a679b7fc8 /gdb/dwarf2-frame.h
parente34838f0f74e1fdb249bcdd822136c98375e4f4b (diff)
downloadgdb-0d45f56e4700225d5789b60da9ea3f082bb5e23d.zip
gdb-0d45f56e4700225d5789b60da9ea3f082bb5e23d.tar.gz
gdb-0d45f56e4700225d5789b60da9ea3f082bb5e23d.tar.bz2
* dwarf2loc.c (dwarf_expr_frame_base): Constify.
(dwarf_expr_frame_base_1): Likewise. (read_pieced_value): Update. (needs_frame_frame_base): Constify. (dwarf2_tracepoint_var_loc): Likewise. (dwarf2_tracepoint_var_access): Likewise. (locexpr_describe_location_piece): Likewise. (locexpr_describe_location_1): Likewise. * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: Constify. (data): Now const. (struct dwarf_expr_piece) <v.literal.data>: Likewise. (dwarf_expr_eval, read_uleb128, read_sleb128) (dwarf2_read_address): Update. * dwarf2expr.c (dwarf_expr_eval): Constify. (read_uleb128): Likewise. (read_sleb128): Likewise. (dwarf2_read_address): Likewise. (require_composition): Likewise. (execute_stack_op): Likewise. * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a "const gdb_byte *". * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: Now const. (no_get_frame_base): Constify. (execute_stack_op): Likewise. (execute_cfa_program): Likewise. (read_encoded_value): Likewise.
Diffstat (limited to 'gdb/dwarf2-frame.h')
-rw-r--r--gdb/dwarf2-frame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2-frame.h b/gdb/dwarf2-frame.h
index d2b34f0..2496f05 100644
--- a/gdb/dwarf2-frame.h
+++ b/gdb/dwarf2-frame.h
@@ -72,7 +72,7 @@ struct dwarf2_frame_state_reg
union {
LONGEST offset;
ULONGEST reg;
- unsigned char *exp;
+ const gdb_byte *exp;
struct value *(*fn) (struct frame_info *this_frame, void **this_cache,
int regnum);
} loc;