summaryrefslogtreecommitdiff
path: root/gdb/inferior.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/inferior.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/inferior.c')
-rw-r--r--gdb/inferior.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index bebddb44173..1abdde3b3b4 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -36,6 +36,7 @@
#include "readline/tilde.h"
#include "progspace-and-thread.h"
#include "gdbsupport/buildargv.h"
+#include "cli/cli-style.h"
/* Keep a registry of per-inferior data-pointers required by other GDB
modules. */
@@ -521,7 +522,8 @@ print_inferior (struct ui_out *uiout, const char *requested_inferiors)
uiout->field_string ("connection-id", conn);
if (inf->pspace->exec_filename != nullptr)
- uiout->field_string ("exec", inf->pspace->exec_filename.get ());
+ uiout->field_string ("exec", inf->pspace->exec_filename.get (),
+ file_name_style.style ());
else
uiout->field_skip ("exec");