summaryrefslogtreecommitdiff
path: root/gdb/progspace.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/progspace.c
parent29928b8e3b79e14abb11cfa78daec447158b79d4 (diff)
downloadbinutils-gdb-972f7a4b97f81a0a5e6f46b9fb163796dc12ead5.tar.gz
Add more filename styling
I found a few spots where filename styling ought to be applied, but is not.
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 4a2ac84ca06..8dc21fd42c2 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -27,6 +27,7 @@
#include "gdbthread.h"
#include "inferior.h"
#include <algorithm>
+#include "cli/cli-style.h"
/* The last program space number assigned. */
static int last_program_space_num = 0;
@@ -321,7 +322,8 @@ print_program_space (struct ui_out *uiout, int requested)
uiout->field_signed ("id", pspace->num);
if (pspace->exec_filename != nullptr)
- uiout->field_string ("exec", pspace->exec_filename.get ());
+ uiout->field_string ("exec", pspace->exec_filename.get (),
+ file_name_style.style ());
else
uiout->field_skip ("exec");