aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-13 09:35:19 -0600
committerTom Tromey <tromey@adacore.com>2019-05-14 07:43:38 -0600
commite7bd7fba34ae1f892acf1e13ac86fca55b68026d (patch)
treeb1135d9729888763958d69420a735d78210b8ac5 /gdb/solib.c
parent35015cd193be5e603ed31c14472d2d9d17e14e7a (diff)
downloadbinutils-e7bd7fba34ae1f892acf1e13ac86fca55b68026d.zip
binutils-e7bd7fba34ae1f892acf1e13ac86fca55b68026d.tar.gz
binutils-e7bd7fba34ae1f892acf1e13ac86fca55b68026d.tar.bz2
Add file name styling to "info sharedlibrary"
This changes "info sharedlibrary" to add styling to the file name. Tested on x86-64 Fedora 29. gdb/ChangeLog 2019-05-14 Tom Tromey <tromey@adacore.com> * solib.c (info_sharedlibrary_command): Style the file name. gdb/testsuite/ChangeLog 2019-05-14 Tom Tromey <tromey@adacore.com> * gdb.base/info-shared.exp (check_info_shared): Add "info shared" styling test.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 25555af..e0b1a92 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1104,7 +1104,7 @@ info_sharedlibrary_command (const char *pattern, int from_tty)
else
uiout->field_string ("syms-read", so->symbols_loaded ? "Yes" : "No");
- uiout->field_string ("name", so->so_name);
+ uiout->field_string ("name", so->so_name, ui_out_style_kind::FILE);
uiout->text ("\n");
}