gdb: more file name styling

While looking at the recent line number styling commit I noticed a few
places where we could add more file name styling.  So lets do that.

Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Andrew Burgess
2024-10-01 16:55:28 +01:00
parent 042f14505e
commit bcb92f7ba7
4 changed files with 41 additions and 23 deletions

View File

@@ -899,7 +899,10 @@ do_mixed_source_and_assembly (struct gdbarch *gdbarch,
output includes the source specs for each line. */
if (sal.symtab != NULL)
{
uiout->text (symtab_to_filename_for_display (sal.symtab));
auto filename = symtab_to_filename_for_display (sal.symtab);
uiout->message ("%ps",
styled_string (file_name_style.style (),
filename));
}
else
uiout->text ("unknown");