aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch-components.py
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-09-29 15:13:09 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-29 16:42:34 -0400
commit3fe639b81b452b79460a8527aa57011f1c42ec8b (patch)
tree21ac377df7dfa287c46d00b11045fdb1b0fa8388 /gdb/gdbarch-components.py
parent31282a849107d95d3cfe115ba160f976dd99844c (diff)
downloadgdb-3fe639b81b452b79460a8527aa57011f1c42ec8b.zip
gdb-3fe639b81b452b79460a8527aa57011f1c42ec8b.tar.gz
gdb-3fe639b81b452b79460a8527aa57011f1c42ec8b.tar.bz2
gdb: constify auxv parse functions
Constify the input parameters of the various auxv parse functions, they don't need to modify the raw auxv data. Change-Id: I13eacd5ab8e925ec2b5c1f7722cbab39c41516ec
Diffstat (limited to 'gdb/gdbarch-components.py')
-rw-r--r--gdb/gdbarch-components.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbarch-components.py b/gdb/gdbarch-components.py
index ad71bf7..6374240 100644
--- a/gdb/gdbarch-components.py
+++ b/gdb/gdbarch-components.py
@@ -2492,8 +2492,8 @@ Return 1 if an entry was read into *TYPEP and *VALP.
type="int",
name="auxv_parse",
params=[
- ("gdb_byte **", "readptr"),
- ("gdb_byte *", "endptr"),
+ ("const gdb_byte **", "readptr"),
+ ("const gdb_byte *", "endptr"),
("CORE_ADDR *", "typep"),
("CORE_ADDR *", "valp"),
],