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/completer.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/completer.c')
-rw-r--r-- | gdb/completer.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index e132651..91bf812 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -911,11 +911,12 @@ line_completion_function (const char *text, int matches, QUOTECHARS or BREAKCHARS is NULL, use the same values used by the completer. */ -char * -skip_quoted_chars (char *str, char *quotechars, char *breakchars) +const char * +skip_quoted_chars (const char *str, const char *quotechars, + const char *breakchars) { char quote_char = '\0'; - char *scan; + const char *scan; if (quotechars == NULL) quotechars = gdb_completer_quote_characters; @@ -953,8 +954,8 @@ skip_quoted_chars (char *str, char *quotechars, char *breakchars) characters and word break characters used by the completer). Returns pointer to the location after the "word". */ -char * -skip_quoted (char *str) +const char * +skip_quoted (const char *str) { return skip_quoted_chars (str, NULL, NULL); } |