aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.h
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/auxv.h
parent31282a849107d95d3cfe115ba160f976dd99844c (diff)
downloadbinutils-3fe639b81b452b79460a8527aa57011f1c42ec8b.zip
binutils-3fe639b81b452b79460a8527aa57011f1c42ec8b.tar.gz
binutils-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/auxv.h')
-rw-r--r--gdb/auxv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/auxv.h b/gdb/auxv.h
index a4801c3..497318e 100644
--- a/gdb/auxv.h
+++ b/gdb/auxv.h
@@ -31,8 +31,8 @@
Return 0 if *READPTR is already at the end of the buffer.
Return -1 if there is insufficient buffer for a whole entry.
Return 1 if an entry was read into *TYPEP and *VALP. */
-extern int default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
- gdb_byte *endptr, CORE_ADDR *typep,
+extern int default_auxv_parse (struct target_ops *ops, const gdb_byte **readptr,
+ const gdb_byte *endptr, CORE_ADDR *typep,
CORE_ADDR *valp);
/* The SVR4 psABI implementation of to_auxv_parse, that uses an int to
@@ -42,15 +42,15 @@ extern int default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
Return 0 if *READPTR is already at the end of the buffer.
Return -1 if there is insufficient buffer for a whole entry.
Return 1 if an entry was read into *TYPEP and *VALP. */
-extern int svr4_auxv_parse (struct gdbarch *gdbarch, gdb_byte **readptr,
- gdb_byte *endptr, CORE_ADDR *typep,
+extern int svr4_auxv_parse (struct gdbarch *gdbarch, const gdb_byte **readptr,
+ const gdb_byte *endptr, CORE_ADDR *typep,
CORE_ADDR *valp);
/* Read one auxv entry from *READPTR, not reading locations >= ENDPTR.
Return 0 if *READPTR is already at the end of the buffer.
Return -1 if there is insufficient buffer for a whole entry.
Return 1 if an entry was read into *TYPEP and *VALP. */
-extern int target_auxv_parse (gdb_byte **readptr, gdb_byte *endptr,
+extern int target_auxv_parse (const gdb_byte **readptr, const gdb_byte *endptr,
CORE_ADDR *typep, CORE_ADDR *valp);
/* Extract the auxiliary vector entry with a_type matching MATCH.