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/psympriv.h | |
parent | gdb/ (diff) | |
download | binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.tar.gz binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.tar.bz2 binutils-gdb-4e04028d9573bd2a145f2bff5d4b3de0b75c83f6.zip |
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/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h index ec9aa4a9a1c..21471c710b8 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -226,7 +226,8 @@ extern struct partial_symtab *start_psymtab_common (struct objfile *, struct partial_symbol **); extern struct partial_symtab *allocate_psymtab (const char *, - struct objfile *); + struct objfile *) + ATTRIBUTE_NONNULL (1); extern void discard_psymtab (struct objfile *, struct partial_symtab *); |