forked from Imagelibrary/binutils-gdb
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user