summaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-09-01 18:37:05 +0000
committerKevin Buettner <kevinb@redhat.com>2000-09-01 18:37:05 +0000
commit4a38cd35903c9ba19184f564f548f2034c7e22b9 (patch)
tree94df3448b5e0fac9b5a8d7b4258b65915b9b57f3 /gdb/symtab.c
parent0b44d9fbdbdc6a7f55d266781b85c17420c1dcc2 (diff)
downloadgdb-4a38cd35903c9ba19184f564f548f2034c7e22b9.tar.gz
Fix core dump when executing ``b .'' command.
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 f48368f2e23..2e83933b5be 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2642,7 +2642,8 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
/* First check for "global" namespace specification,
of the form "::foo". If found, skip over the colons
and jump to normal symbol processing */
- if ((*argptr == p) || (p[-1] == ' ') || (p[-1] == '\t'))
+ if (p[0] == ':'
+ && ((*argptr == p) || (p[-1] == ' ') || (p[-1] == '\t')))
saved_arg2 += 2;
/* We have what looks like a class or namespace