summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-12-24 19:42:15 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-12-24 19:42:15 +0000
commit7c035aa28d500042ef5e2b3ab5fda212eecac7b8 (patch)
tree28793b5df800552f357c9136be47368ca8868088 /gdb/symfile.h
parent8227630c51595ba62191fd6793eddfb36753bed9 (diff)
downloadgdb-7c035aa28d500042ef5e2b3ab5fda212eecac7b8.tar.gz
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/symfile.h')
-rw-r--r--gdb/symfile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 223f8740512..ff7fc811d63 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -454,7 +454,8 @@ extern struct symfile_segment_data *default_symfile_segments (bfd *abfd);
extern bfd_byte *default_symfile_relocate (struct objfile *objfile,
asection *sectp, bfd_byte *buf);
-extern struct symtab *allocate_symtab (const char *, struct objfile *);
+extern struct symtab *allocate_symtab (const char *, struct objfile *)
+ ATTRIBUTE_NONNULL (1);
extern void add_symtab_fns (const struct sym_fns *);