This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] [patch] Code cleanup: Do not check symtab->FILENAME for NULL
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 24 Dec 2012 20:42:28 +0100
- Subject: [commit] [patch] Code cleanup: Do not check symtab->FILENAME for NULL
- References: <20121217135437.GA3097@host2.jankratochvil.net>
On Mon, 17 Dec 2012 14:54:37 +0100, Jan Kratochvil wrote:
> gdb/
> 2012-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> 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.
Checked in:
http://sourceware.org/ml/gdb-cvs/2012-12/msg00181.html
Jan