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 | c6ef451cd84c003d0d3b438bec2455c96d2db843 (patch) | |
tree | e03be69ebaf44a3fa956146d991229346c2b0d48 /gdb/symtab.c | |
parent | 705152c5cda80a4d43f27349ac7d19b4d91a37a1 (diff) | |
download | gdb-c6ef451cd84c003d0d3b438bec2455c96d2db843.zip gdb-c6ef451cd84c003d0d3b438bec2455c96d2db843.tar.gz gdb-c6ef451cd84c003d0d3b438bec2455c96d2db843.tar.bz2 |
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 f48368f..2e83933 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 |