aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-11-18 11:20:22 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2015-11-18 11:20:22 -0500
commit7cc3f8e23b5c19a50722adefce986230b191e9cd (patch)
treec201525c8f0e3fab6971bce155966f36a62bd494 /gdb/value.h
parent79f338988c53625a3ab3fba63f06c6ffd224e9ff (diff)
downloadgdb-7cc3f8e23b5c19a50722adefce986230b191e9cd.zip
gdb-7cc3f8e23b5c19a50722adefce986230b191e9cd.tar.gz
gdb-7cc3f8e23b5c19a50722adefce986230b191e9cd.tar.bz2
Constify value_string
If we constify value_cstring, we might as well constify this one. gdb/ChangeLog: * valops.c (value_string): Constify 'ptr' parameter. * value.h (value_string): Constify 'ptr' parameter.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 94a2234..eea0e59 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -698,7 +698,7 @@ extern void value_free_to_mark (struct value *mark);
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,
+extern struct value *value_string (const char *ptr, ssize_t len,
struct type *char_type);
extern struct value *value_array (int lowbound, int highbound,