aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-02-28 08:21:55 -0700
committerTom Tromey <tromey@adacore.com>2022-02-28 11:33:30 -0700
commit972f7a4b97f81a0a5e6f46b9fb163796dc12ead5 (patch)
treeef051cf4349869e03ecdf31406afc1bb86edb660 /gdb/gdb_bfd.c
parent29928b8e3b79e14abb11cfa78daec447158b79d4 (diff)
downloadgdb-972f7a4b97f81a0a5e6f46b9fb163796dc12ead5.zip
gdb-972f7a4b97f81a0a5e6f46b9fb163796dc12ead5.tar.gz
gdb-972f7a4b97f81a0a5e6f46b9fb163796dc12ead5.tar.bz2
Add more filename styling
I found a few spots where filename styling ought to be applied, but is not.
Diffstat (limited to 'gdb/gdb_bfd.c')
-rw-r--r--gdb/gdb_bfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index d28c323..b2e896f 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -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;