diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-29 15:13:09 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-29 16:42:34 -0400 |
commit | 3fe639b81b452b79460a8527aa57011f1c42ec8b (patch) | |
tree | 21ac377df7dfa287c46d00b11045fdb1b0fa8388 /gdb/target.h | |
parent | 31282a849107d95d3cfe115ba160f976dd99844c (diff) | |
download | gdb-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/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 8e13ada..28aa927 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -862,8 +862,8 @@ struct target_ops 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. */ - virtual int auxv_parse (gdb_byte **readptr, - gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) + virtual int auxv_parse (const gdb_byte **readptr, + const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC (default_auxv_parse); /* Search SEARCH_SPACE_LEN bytes beginning at START_ADDR for the |