aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-12-24 19:42:16 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-12-24 19:42:16 +0000
commit4e04028d9573bd2a145f2bff5d4b3de0b75c83f6 (patch)
treef32d3f2286ec7f36a9cc6cf18a10b17596eba5e1 /gdb/linespec.c
parent858174054dbd9970d840c043aeb318f721fcf4fd (diff)
downloadfsf-binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.zip
fsf-binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.tar.gz
fsf-binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.tar.bz2
gdb/
Code cleanup. * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for NULL. * linespec.c (add_sal_to_sals): Likewise. * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL. * stack.c (print_frame): Do not check symtab->FILENAME for NULL. * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL. * symtab.h (struct symtab): Add comment it is never NULL for filename. * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME for NULL. * tui/tui-source.c (tui_set_source_content): Likewise.
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 e9918b1..c22ffe7 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -852,7 +852,7 @@ add_sal_to_sals (struct linespec_state *self,
self->canonical_names = xrealloc (self->canonical_names,
sals->nelts * sizeof (char *));
- if (!literal_canonical && sal->symtab && sal->symtab->filename)
+ if (!literal_canonical && sal->symtab)
{
char *filename = sal->symtab->filename;