diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-12-24 19:42:15 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-12-24 19:42:15 +0000 |
commit | 7c035aa28d500042ef5e2b3ab5fda212eecac7b8 (patch) | |
tree | 28793b5df800552f357c9136be47368ca8868088 /gdb/stack.c | |
parent | 8227630c51595ba62191fd6793eddfb36753bed9 (diff) | |
download | gdb-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/stack.c')
-rw-r--r-- | gdb/stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index b01c8f0b077..e246a68305b 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1178,7 +1178,7 @@ print_frame (struct frame_info *frame, int print_level, QUIT; } ui_out_text (uiout, ")"); - if (sal.symtab && sal.symtab->filename) + if (sal.symtab) { annotate_frame_source_begin (); ui_out_wrap_hint (uiout, " "); @@ -1199,7 +1199,7 @@ print_frame (struct frame_info *frame, int print_level, annotate_frame_source_end (); } - if (pc_p && (!funname || (!sal.symtab || !sal.symtab->filename))) + if (pc_p && (funname == NULL || sal.symtab == NULL)) { #ifdef PC_SOLIB char *lib = PC_SOLIB (get_frame_pc (frame)); |