Fix core dump when executing ``b .'' command.
authorKevin Buettner <kevinb@redhat.com>
Fri, 1 Sep 2000 18:37:05 +0000 (18:37 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 1 Sep 2000 18:37:05 +0000 (18:37 +0000)
gdb/ChangeLog
gdb/symtab.c

index 6f0bc08067e67702d1b713ada5e4c62a73ed5195..94eb3c628e34623bc54b366a50e69fca7b7b4057 100644 (file)
@@ -1,3 +1,9 @@
+2000-09-01  Kevin Buettner  <kevinb@redhat.com>
+
+       * symtab.c (decode_line_1):  Make sure leading character is
+       actually a colon before skipping over leading colons in global
+       namespace specification.
+
 2000-09-01  Michael Snyder  <msnyder@cleaver.cygnus.com>
 
        * regcache.c (reg_flush_command): New function.  Maintainer-mode
index f48368f2e23d77f8a35a2924df92e6e8f698828e..2e83933b5be86442de0bba14fad9764ce31f0e7a 100644 (file)
@@ -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
This page took 0.031703 seconds and 4 git commands to generate.