Add more filename styling

I found a few spots where filename styling ought to be applied, but is
not.
This commit is contained in:
Tom Tromey
2022-02-28 08:21:55 -07:00
parent 29928b8e3b
commit 972f7a4b97
7 changed files with 21 additions and 9 deletions

View File

@ -32,6 +32,7 @@
#include "target.h"
#include "gdb/fileio.h"
#include "inferior.h"
#include "cli/cli-style.h"
/* An object of this type is stored in the section's user data when
mapping a section. */
@ -1101,7 +1102,8 @@ print_one_bfd (void **slot, void *data)
ui_out_emit_tuple tuple_emitter (uiout, NULL);
uiout->field_signed ("refcount", gdata->refc);
uiout->field_string ("addr", host_address_to_string (abfd));
uiout->field_string ("filename", bfd_get_filename (abfd));
uiout->field_string ("filename", bfd_get_filename (abfd),
file_name_style.style ());
uiout->text ("\n");
return 1;