diff options
author | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:07 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:07 +0000 |
commit | d7561cbbf27a8ff771f85baf6696aa7645250484 (patch) | |
tree | eb81d452fe456e9a043cc453bf8b65617b40e915 /gdb/objc-lang.c | |
parent | 62574b938f80a485874b85a770d03bf0f21eece5 (diff) | |
download | gdb-d7561cbbf27a8ff771f85baf6696aa7645250484.zip gdb-d7561cbbf27a8ff771f85baf6696aa7645250484.tar.gz gdb-d7561cbbf27a8ff771f85baf6696aa7645250484.tar.bz2 |
Constification of parse_linespec and fallout:
https://sourceware.org/ml/gdb-patches/2013-09/msg01017.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01018.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01019.html
https://sourceware.org/ml/gdb-patches/2013-09/msg01020.html
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 734fc5d..bcce435 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -426,7 +426,8 @@ start_msglist(void) void add_msglist(struct stoken *str, int addcolon) { - char *s, *p; + char *s; + const char *p; int len, plen; if (str == 0) /* Unnamed arg, or... */ @@ -1071,7 +1072,7 @@ uniquify_strings (VEC (const_char_ptr) **strings) } /* - * Function: find_imps (char *selector, struct symbol **sym_arr) + * Function: find_imps (const char *selector, struct symbol **sym_arr) * * Input: a string representing a selector * a pointer to an array of symbol pointers @@ -1100,8 +1101,8 @@ uniquify_strings (VEC (const_char_ptr) **strings) * be the index of the first non-debuggable one). */ -char * -find_imps (char *method, VEC (const_char_ptr) **symbol_names) +const char * +find_imps (const char *method, VEC (const_char_ptr) **symbol_names) { char type = '\0'; char *class = NULL; |