aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/symtab.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cfe6035..5d6edfc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-24 Keith Seitz <keiths@redhat.com>
+
+ * symtab.c (default_make_symbol_completion_list): Keep
+ ':', too, so that we can limit searches in namespaces
+ and classes.
+
2009-08-24 Tom Tromey <tromey@redhat.com>
* python/python-value.c (valpy_richcompare): Don't return from
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;