aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-11-18 15:51:17 +0000
committerPedro Alves <palves@redhat.com>2015-11-18 15:51:17 +0000
commite3a3797ee558f4f84c67a65e1d9abce845f15abd (patch)
tree94136a3807a6f0e7985428581c0bd77dd68c5c4d /gdb/valops.c
parentb53e4c0e7c0832a1779d5000a71a9de51dae699b (diff)
downloadgdb-e3a3797ee558f4f84c67a65e1d9abce845f15abd.zip
gdb-e3a3797ee558f4f84c67a65e1d9abce845f15abd.tar.gz
gdb-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/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 1e372ef..67e6afe 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1626,7 +1626,7 @@ value_array (int lowbound, int highbound, struct value **elemvec)
}
struct value *
-value_cstring (char *ptr, ssize_t len, struct type *char_type)
+value_cstring (const char *ptr, ssize_t len, struct type *char_type)
{
struct value *val;
int lowbound = current_language->string_lower_bound;