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 9964748f48157cc125f1c47c0e64e0bff2c4c695..87701b409ef42ce05f7b7d344bfc873486015f7d 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 9468f265a14adb50840a49cd588e7d3d7ca8f4ce..e8bc695c20bba76b822d4c814fd9fdbb9ebce0de 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;
        }
     }