From 4e04028d9573bd2a145f2bff5d4b3de0b75c83f6 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 24 Dec 2012 19:42:16 +0000 Subject: 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. --- gdb/tracepoint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index f61ede7..848179a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -312,8 +312,7 @@ set_traceframe_context (struct frame_info *trace_frame) /* Save file name as "$trace_file", a debugger variable visible to users. */ - if (traceframe_sal.symtab == NULL - || traceframe_sal.symtab->filename == NULL) + if (traceframe_sal.symtab == NULL) clear_internalvar (lookup_internalvar ("trace_file")); else set_internalvar_string (lookup_internalvar ("trace_file"), -- cgit v1.1