aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-05-26 15:21:13 +0000
committerTom Tromey <tromey@redhat.com>2010-05-26 15:21:13 +0000
commit947bb88ff5da0770e9d6a238b54b7053ba8bd6fb (patch)
treeee4a6113473d5a90090fd5726719e4a3f24b1042 /gdb/dwarf2loc.h
parentf418727792e6e7dce38aa382db45d147bccd8ed7 (diff)
downloadgdb-947bb88ff5da0770e9d6a238b54b7053ba8bd6fb.zip
gdb-947bb88ff5da0770e9d6a238b54b7053ba8bd6fb.tar.gz
gdb-947bb88ff5da0770e9d6a238b54b7053ba8bd6fb.tar.bz2
* 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 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;