diff options
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c index 45140fc..ef2ea03 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1346,7 +1346,11 @@ print_source_lines_base (struct symtab *s, int line, int stopline, ui_out_text (uiout, "\tin "); ui_out_field_string (uiout, "file", symtab_to_filename_for_display (s)); - if (ui_out_is_mi_like_p (uiout)) + + /* TUI expects the "fullname" field. While it is + !ui_out_is_mi_like_p compared to CLI it is !ui_source_list. */ + if (ui_out_is_mi_like_p (uiout) + || !ui_out_test_flags (uiout, ui_source_list)) { const char *fullname = symtab_to_fullname (s); |