Constify value_nsstring
This changes the "ptr" parameter to value_nsstring to be const. gdb/ChangeLog 2020-11-10 Tom Tromey <tom@tromey.com> * objc-lang.h (value_nsstring): Update. * objc-lang.c (value_nsstring): Make "ptr" const.
This commit is contained in:
parent
6c51cf513d
commit
8e20b4be65
@ -1,3 +1,8 @@
|
|||||||
|
2020-11-10 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* objc-lang.h (value_nsstring): Update.
|
||||||
|
* objc-lang.c (value_nsstring): Make "ptr" const.
|
||||||
|
|
||||||
2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* expprint.c (print_subexp_funcall): Increment expression position
|
* expprint.c (print_subexp_funcall): Increment expression position
|
||||||
|
@ -164,7 +164,7 @@ lookup_child_selector (struct gdbarch *gdbarch, const char *selname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct value *
|
struct value *
|
||||||
value_nsstring (struct gdbarch *gdbarch, char *ptr, int len)
|
value_nsstring (struct gdbarch *gdbarch, const char *ptr, int len)
|
||||||
{
|
{
|
||||||
struct type *char_type = builtin_type (gdbarch)->builtin_char;
|
struct type *char_type = builtin_type (gdbarch)->builtin_char;
|
||||||
struct value *stringValue[3];
|
struct value *stringValue[3];
|
||||||
|
@ -39,7 +39,7 @@ extern const char *find_imps (const char *method,
|
|||||||
std::vector<const char *> *symbol_names);
|
std::vector<const char *> *symbol_names);
|
||||||
|
|
||||||
extern struct value *value_nsstring (struct gdbarch *gdbarch,
|
extern struct value *value_nsstring (struct gdbarch *gdbarch,
|
||||||
char *ptr, int len);
|
const char *ptr, int len);
|
||||||
|
|
||||||
/* for parsing Objective C */
|
/* for parsing Objective C */
|
||||||
extern void start_msglist (void);
|
extern void start_msglist (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user