summaryrefslogtreecommitdiff
path: root/gdb/tui
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/tui
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/tui')
-rw-r--r--gdb/tui/tui-source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c
index 030653c8f22..a0daac7121b 100644
--- a/gdb/tui/tui-source.c
+++ b/gdb/tui/tui-source.c
@@ -46,7 +46,7 @@ tui_set_source_content (struct symtab *s,
{
enum tui_status ret = TUI_FAILURE;
- if (s != (struct symtab *) NULL && s->filename != (char *) NULL)
+ if (s != (struct symtab *) NULL)
{
FILE *stream;
int i, desc, c, line_width, nlines;