2013-12-17 Sterling Augustine <saugustine@google.com>
authorSterling Augustine <saugustine@google.com>
Tue, 17 Dec 2013 21:43:34 +0000 (13:43 -0800)
committerSterling Augustine <saugustine@google.com>
Mon, 23 Dec 2013 23:14:39 +0000 (15:14 -0800)
* linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
isn't found.

gdb/ChangeLog
gdb/linespec.c

index 9964748..87701b4 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-23  Sterling Augustine  <saugustine@google.com>
+
+       * linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol
+       isn't found.
+
 2013-12-23  Sergio Durigan JUnior  <sergiodj@redhat.com>
 
        * stap-probe.c (struct stap_probe) <args_parsed>: Add comment.
index 9468f26..e8bc695 100644 (file)
@@ -885,7 +885,7 @@ add_sal_to_sals (struct linespec_state *self,
          if (symname != NULL)
            canonical->suffix = xstrdup (symname);
          else
-           canonical->suffix = NULL;
+           canonical->suffix = xstrdup ("<unknown>");
          canonical->symtab = NULL;
        }
     }