diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-09-01 18:37:05 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-09-01 18:37:05 +0000 |
commit | 4a38cd35903c9ba19184f564f548f2034c7e22b9 (patch) | |
tree | 94df3448b5e0fac9b5a8d7b4258b65915b9b57f3 /gdb/symtab.c | |
parent | 0b44d9fbdbdc6a7f55d266781b85c17420c1dcc2 (diff) | |
download | gdb-4a38cd35903c9ba19184f564f548f2034c7e22b9.tar.gz |
Fix core dump when executing ``b .'' command.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 3 |
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 |