This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/3] Fix regression: expression completer and scope operator (PR gdb/22584)
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 13 Dec 2017 13:26:33 +0000
- Subject: [PATCH 0/3] Fix regression: expression completer and scope operator (PR gdb/22584)
- Authentication-results: sourceware.org; auth=none
This patch series fixes PR gdb/22584, a regression in the expression
completer:
"(gdb) p std::[TAB]" => "(gdb) p std::std::"
GDB got confused above, there's no such thing as "std::std::".
Patch #1 factors out some code duplicated throughout the codebase.
The new function patched by patch #1 is used by patch #2 (the actual fix) uses.
Patch #3 fixes something in the new completion testing support
routines that I noticed while writing the tests for patch #2.
Pedro Alves (3):
Factor out final completion match string building
Fix regression: expression completer and scope operator (PR gdb/22584)
Tighten regexp of
lib/completion-support.exp:test_gdb_complete_tab_multiple
gdb/cli/cli-decode.c | 41 +----------
gdb/completer.c | 115 +++++++++++++++++++++----------
gdb/completer.h | 24 ++++++-
gdb/interps.c | 20 +-----
gdb/symtab.c | 52 ++------------
gdb/testsuite/gdb.cp/cpcompletion.exp | 42 +++++++++++
gdb/testsuite/gdb.cp/pr9594.cc | 13 ++++
gdb/testsuite/lib/completion-support.exp | 7 +-
8 files changed, 169 insertions(+), 145 deletions(-)
--
2.5.5