aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-11-10 15:46:17 -0700
committerTom Tromey <tom@tromey.com>2020-11-10 15:46:18 -0700
commit8e20b4be65843c220260e4f0f5dd943f5570656b (patch)
tree8f0a96f809e543fccfdb871979fb42cc2cb686ee /gdb/objc-lang.c
parent6c51cf513d98adcf34a342c7e9d885a6c788cda8 (diff)
downloadgdb-8e20b4be65843c220260e4f0f5dd943f5570656b.zip
gdb-8e20b4be65843c220260e4f0f5dd943f5570656b.tar.gz
gdb-8e20b4be65843c220260e4f0f5dd943f5570656b.tar.bz2
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.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r--gdb/objc-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 1675146..4cd8532 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -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];