]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* linespec.c (symtab_from_filename): Check for the end of string.
authorAleksandar Ristovski <aristovski@qnx.com>
Fri, 26 Aug 2011 17:58:57 +0000 (17:58 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Fri, 26 Aug 2011 17:58:57 +0000 (17:58 +0000)
gdb/ChangeLog
gdb/linespec.c

index 3a5b491b1e4a7add46843affa07bd9d37f5bf0dc..5179af7f4ade57e2904cf39a2559dec588b8e3b2 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
+
+       * linespec.c (symtab_from_filename): Check for the end of string.
+
 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
 
        PR mi/11912
index b96c79f0e34e579332d37d6e1d2c68cb05ed6b50..37ec36842459913591b32cc59203b596f9a3633a 100644 (file)
@@ -1835,6 +1835,8 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed)
     }
 
   /* Discard the file name from the arg.  */
+  if (*p1 == '\0')
+    return file_symtab;
   p = p1 + 1;
   while (*p == ' ' || *p == '\t')
     p++;