diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-12-24 19:42:16 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-12-24 19:42:16 +0000 |
commit | 4e04028d9573bd2a145f2bff5d4b3de0b75c83f6 (patch) | |
tree | f32d3f2286ec7f36a9cc6cf18a10b17596eba5e1 /gdb/dwarf2read.c | |
parent | 858174054dbd9970d840c043aeb318f721fcf4fd (diff) | |
download | gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.zip gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.tar.gz 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/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index beb2ea8..3f86985 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6733,7 +6733,6 @@ fixup_go_packaging (struct dwarf2_cu *cu) complaint (&symfile_complaints, _("Symtab %s has objects from two different Go packages: %s and %s"), (SYMBOL_SYMTAB (sym) - && SYMBOL_SYMTAB (sym)->filename ? SYMBOL_SYMTAB (sym)->filename : cu->objfile->name), this_package_name, package_name); |