mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 07:24:48 +00:00
gdb/
* source.c (print_source_lines_base): Suppress "file" for TUI.
This commit is contained in:
parent
ae59b1da21
commit
23eb71e428
@ -1,3 +1,8 @@
|
||||
2013-03-14 Hui Zhu <hui_zhu@mentor.com>
|
||||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* source.c (print_source_lines_base): Suppress "file" for TUI.
|
||||
|
||||
2013-03-14 Keith Seitz <keiths@redhat.com>
|
||||
Alan Matsuoka <alanm@redhat.com>
|
||||
|
||||
|
13
gdb/source.c
13
gdb/source.c
@ -1344,11 +1344,15 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
|
||||
{
|
||||
ui_out_field_int (uiout, "line", line);
|
||||
ui_out_text (uiout, "\tin ");
|
||||
ui_out_field_string (uiout, "file",
|
||||
symtab_to_filename_for_display (s));
|
||||
|
||||
/* TUI expects the "fullname" field. While it is
|
||||
!ui_out_is_mi_like_p compared to CLI it is !ui_source_list. */
|
||||
/* CLI expects only the "file" field. TUI expects only the
|
||||
"fullname" field (and TUI does break if "file" is printed).
|
||||
MI expects both fields. ui_source_list is set only for CLI,
|
||||
not for TUI. */
|
||||
if (ui_out_is_mi_like_p (uiout)
|
||||
|| ui_out_test_flags (uiout, ui_source_list))
|
||||
ui_out_field_string (uiout, "file",
|
||||
symtab_to_filename_for_display (s));
|
||||
if (ui_out_is_mi_like_p (uiout)
|
||||
|| !ui_out_test_flags (uiout, ui_source_list))
|
||||
{
|
||||
@ -1356,6 +1360,7 @@ print_source_lines_base (struct symtab *s, int line, int stopline,
|
||||
|
||||
ui_out_field_string (uiout, "fullname", fullname);
|
||||
}
|
||||
|
||||
ui_out_text (uiout, "\n");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user