mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 05:14:18 +08:00
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:
@ -164,7 +164,7 @@ lookup_child_selector (struct gdbarch *gdbarch, const char *selname)
|
||||
}
|
||||
|
||||
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];
|
||||
|
Reference in New Issue
Block a user