diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-11-18 15:51:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-18 15:51:17 +0000 |
commit | e3a3797ee558f4f84c67a65e1d9abce845f15abd (patch) | |
tree | 94136a3807a6f0e7985428581c0bd77dd68c5c4d /gdb/value.h | |
parent | b53e4c0e7c0832a1779d5000a71a9de51dae699b (diff) | |
download | binutils-e3a3797ee558f4f84c67a65e1d9abce845f15abd.zip binutils-e3a3797ee558f4f84c67a65e1d9abce845f15abd.tar.gz binutils-e3a3797ee558f4f84c67a65e1d9abce845f15abd.tar.bz2 |
Constify value_cstring
gdb/ChangeLog:
2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
* valops.c (value_cstring): Constify 'ptr' parameter.
* value.h (value_cstring): Constify 'ptr' parameter.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h index 0a4bc47..94a2234 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -696,7 +696,7 @@ extern struct value *value_mark (void); extern void value_free_to_mark (struct value *mark); -extern struct value *value_cstring (char *ptr, ssize_t len, +extern struct value *value_cstring (const char *ptr, ssize_t len, struct type *char_type); extern struct value *value_string (char *ptr, ssize_t len, struct type *char_type); |