diff options
author | Pedro Alves <palves@redhat.com> | 2017-11-25 00:20:31 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-11-25 00:20:31 +0000 |
commit | a81aaca0578ee91ce1cee56c0a31e26c2a5ef581 (patch) | |
tree | 798c788bd50a995f352ed34b91e10cf7dbd1883d /gdb/ChangeLog | |
parent | 6a3c6ee41898743234d8fd9f9cab15f2ecdaba49 (diff) | |
download | gdb-a81aaca0578ee91ce1cee56c0a31e26c2a5ef581.zip gdb-a81aaca0578ee91ce1cee56c0a31e26c2a5ef581.tar.gz gdb-a81aaca0578ee91ce1cee56c0a31e26c2a5ef581.tar.bz2 |
Fix completing an empty string
Earlier while working on the big completer rework series, I managed to
break
(gdb) [TAB]
locally, and make GDB crash, but only notice a few weeks down the
road, because we have no test for that...
I also noticed that:
(gdb) [TAB]
didn't work (didn't show all commands as matches), even though
entering a command with leading whitespace works:
(gdb) help
This commit fixes the latter and adds a testcase that covers both
issues.
The gdb.base/completion.exp change is necessary because the new test
has a file name that also starts with "gdb.base/complet", making that
particular test ambiguous. Adding another letter disambiguates.
gdb/ChangeLog:
2017-11-25 Pedro Alves <palves@redhat.com>
* completer.c (complete_line_internal_1): Skip spaces until the
start of the command.
gdb/testsuite/ChangeLog:
2017-11-25 Pedro Alves <palves@redhat.com>
* gdb.base/complete-empty.exp: New file.
* gdb.base/completion.exp: Adjust.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index befce60..4e0b45e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-11-25 Pedro Alves <palves@redhat.com> + + * completer.c (complete_line_internal_1): Skip spaces until the + start of the command. + 2017-11-24 Pedro Alves <palves@redhat.com> * cp-support.c (cp_symbol_name_matches_1): New, factored out from |