diff options
author | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:06 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2013-10-02 00:46:06 +0000 |
commit | c85cddc51d5d9e4423509a2dc7cf3d9809451b49 (patch) | |
tree | f4d948ed91161a563c7dd24c56197f183a50a24a /gdb/completer.c | |
parent | 9cb8e9ab9d225807a721e2b6d520e663fc2fbb81 (diff) | |
download | gdb-c85cddc51d5d9e4423509a2dc7cf3d9809451b49.tar.gz |
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 e13265131a4..91bf81272ec 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); } |