From 947bb88ff5da0770e9d6a238b54b7053ba8bd6fb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 26 May 2010 15:21:13 +0000 Subject: * dwarf2loc.h (struct dwarf2_locexpr_baton) : Now const. (struct dwarf2_loclist_baton) : Likewise. * dwarf2loc.c (find_location_expression): Constify return type. (dwarf2_evaluate_loc_desc): Make 'data' argument const. (dwarf2_loc_desc_needs_frame): Likewise. (loclist_read_variable): Constify. (loclist_describe_location): Likewise. (loclist_tracepoint_var_ref): Likewise. --- gdb/dwarf2loc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/dwarf2loc.h') diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h index fa0bd11..d246e7c 100644 --- a/gdb/dwarf2loc.h +++ b/gdb/dwarf2loc.h @@ -43,7 +43,7 @@ CORE_ADDR dwarf2_per_cu_addr_size (struct dwarf2_per_cu_data *cu); struct dwarf2_locexpr_baton { /* Pointer to the start of the location expression. */ - gdb_byte *data; + const gdb_byte *data; /* Length of the location expression. */ unsigned long size; @@ -60,7 +60,7 @@ struct dwarf2_loclist_baton CORE_ADDR base_address; /* Pointer to the start of the location list. */ - gdb_byte *data; + const gdb_byte *data; /* Length of the location list. */ unsigned long size; -- cgit v1.1