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

@ -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");