aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/loc.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-03-01 08:03:49 -0700
committerTom Tromey <tromey@adacore.com>2023-03-01 15:33:03 -0700
commit5f27603700c0d89023f00b6521b36cc911c23f85 (patch)
tree46042eee0d83bd584e2a36612b6c2db50428bc54 /gdb/dwarf2/loc.h
parent802dace16f8c6dfa3200381669015a7dccbd5e28 (diff)
downloadgdb-5f27603700c0d89023f00b6521b36cc911c23f85.zip
gdb-5f27603700c0d89023f00b6521b36cc911c23f85.tar.gz
gdb-5f27603700c0d89023f00b6521b36cc911c23f85.tar.bz2
Use const for dwarf2_property_baton
Once a baton is stored in a struct type, it doesn't make sense to modify it. This patch constifies the API. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/dwarf2/loc.h')
-rw-r--r--gdb/dwarf2/loc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/loc.h b/gdb/dwarf2/loc.h
index 37925f4..ad60177 100644
--- a/gdb/dwarf2/loc.h
+++ b/gdb/dwarf2/loc.h
@@ -37,7 +37,7 @@ extern unsigned int entry_values_debug;
/* Find a particular location expression from a location list. */
const gdb_byte *dwarf2_find_location_expression
- (struct dwarf2_loclist_baton *baton,
+ (const dwarf2_loclist_baton *baton,
size_t *locexpr_length,
CORE_ADDR pc);