aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2009-08-24 22:00:55 +0000
committerKeith Seitz <keiths@redhat.com>2009-08-24 22:00:55 +0000
commit95699ff03777ac5edb51a8f7680d14e3cde9c56b (patch)
treeeeaf0d28e95a2729a49d9bd9393e2774b20b5ee7 /gdb/symtab.c
parentf9f7ad22a02bb276cd5b29000de15512a0a2c216 (diff)
downloadgdb-95699ff03777ac5edb51a8f7680d14e3cde9c56b.zip
gdb-95699ff03777ac5edb51a8f7680d14e3cde9c56b.tar.gz
gdb-95699ff03777ac5edb51a8f7680d14e3cde9c56b.tar.bz2
* symtab.c (default_make_symbol_completion_list): Keep
':', too, so that we can limit searches in namespaces and classes.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index c88156a..8d9d72c 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -3836,7 +3836,8 @@ default_make_symbol_completion_list (char *text, char *word)
which are in symbols. */
while (p > text)
{
- if (isalnum (p[-1]) || p[-1] == '_' || p[-1] == '\0')
+ if (isalnum (p[-1]) || p[-1] == '_' || p[-1] == '\0'
+ || p[-1] == ':')
--p;
else
break;