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.
+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>
* expprint.c (print_subexp_funcall): Increment expression position
}
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 value *stringValue[3];
std::vector<const char *> *symbol_names);
extern struct value *value_nsstring (struct gdbarch *gdbarch,
- char *ptr, int len);
+ const char *ptr, int len);
/* for parsing Objective C */
extern void start_msglist (void);