public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix regression: expression completer and scope operator (PR gdb/22584)
@ 2017-12-13 13:26 Pedro Alves
  2017-12-13 13:26 ` [PATCH 2/3] " Pedro Alves
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Pedro Alves @ 2017-12-13 13:26 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-13 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-13 13:26 [PATCH 0/3] Fix regression: expression completer and scope operator (PR gdb/22584) Pedro Alves
2017-12-13 13:26 ` [PATCH 2/3] " Pedro Alves
2017-12-13 13:26 ` [PATCH 1/3] Factor out final completion match string building Pedro Alves
2017-12-13 13:26 ` [PATCH 3/3] Tighten regexp of lib/completion-support.exp:test_gdb_complete_tab_multiple Pedro Alves
2017-12-13 15:58 ` [PATCH 0/3] Fix regression: expression completer and scope operator (PR gdb/22584) Simon Marchi
2017-12-13 16:41   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).