aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2013-12-17 13:43:34 -0800
committerSterling Augustine <saugustine@google.com>2013-12-23 15:14:39 -0800
commite617b0692b15848fe5c91eb4810cc670d34ae628 (patch)
tree74baffb1b37f360186db5cadaabd40f1f7141822 /gdb/linespec.c
parent4415de747e2d350a48661e87e2cde941cca6a46c (diff)
downloadgdb-e617b0692b15848fe5c91eb4810cc670d34ae628.zip
gdb-e617b0692b15848fe5c91eb4810cc670d34ae628.tar.gz
gdb-e617b0692b15848fe5c91eb4810cc670d34ae628.tar.bz2
2013-12-17 Sterling Augustine <saugustine@google.com>
* linespec.c (add_sal_to_sals): Use "<unknown>" when a symbol isn't found.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 9468f26..e8bc695 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -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;
}
}