summaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-26 15:21:09 +0000
committerTom Tromey <tromey@redhat.com>2010-05-26 15:21:09 +0000
commit63af4e0d3f9346c2ed37441e061cf359ba547107 (patch)
tree1209e119312e9fde211455314b9b127532f9fa3e /gdb/dwarf2loc.h
parente9280b9c3bbb219d0e891fd98af7d051518de64c (diff)
downloadgdb-63af4e0d3f9346c2ed37441e061cf359ba547107.tar.gz
* dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
(struct dwarf2_loclist_baton) <data>: 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.
Diffstat (limited to 'gdb/dwarf2loc.h')
-rw-r--r--gdb/dwarf2loc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h
index fa0bd11f546..d246e7c30e6 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;