mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
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.
This commit is contained in:
parent
b53e4c0e7c
commit
e3a3797ee5
@ -1,3 +1,8 @@
|
||||
2015-11-18 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* valops.c (value_cstring): Constify 'ptr' parameter.
|
||||
* value.h (value_cstring): Constify 'ptr' parameter.
|
||||
|
||||
2015-11-18 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* aarch64-tdep.c (pass_in_v): Add argument len. Add local array
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user