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/symtab.h | |
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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index d0b668f..477ada9 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -815,7 +815,7 @@ struct symtab all the symtabs in a given compilation unit. */ struct macro_table *macro_table; - /* Name of this source file. */ + /* Name of this source file. This pointer is never NULL. */ char *filename; |