diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-04-30 15:47:41 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-05-08 17:49:04 +0100 |
commit | 189d3013eefb06ed4ccaae8f248842b785f387a1 (patch) | |
tree | d7161f7720f9020e96ab94cd9d1b0e83cf1207fa /gdb/solib.c | |
parent | 0fd705062ee0bb570ac7a1201d6f3cc2ed96f95d (diff) | |
download | gdb-189d3013eefb06ed4ccaae8f248842b785f387a1.zip gdb-189d3013eefb06ed4ccaae8f248842b785f387a1.tar.gz gdb-189d3013eefb06ed4ccaae8f248842b785f387a1.tar.bz2 |
gdb: more filename styling
I spotted a few places in solib.c and build-id.c where we could apply
file name styling.
Other than the extra styling, there should be no user visible changes
after this commit.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index a656b62..db2ff5c 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -903,16 +903,19 @@ update_solib_list (int from_tty) stand out well. */ if (not_found == 1) - warning (_ ("Could not load shared library symbols for %s.\n" + warning (_ ("Could not load shared library symbols for %ps.\n" "Do you need \"set solib-search-path\" " "or \"set sysroot\"?"), - not_found_filename); + styled_string (file_name_style.style (), + not_found_filename)); else if (not_found > 1) warning (_ ("\ -Could not load shared library symbols for %d libraries, e.g. %s.\n\ +Could not load shared library symbols for %d libraries, e.g. %ps.\n\ Use the \"info sharedlibrary\" command to see the complete listing.\n\ Do you need \"set solib-search-path\" or \"set sysroot\"?"), - not_found, not_found_filename); + not_found, + styled_string (file_name_style.style (), + not_found_filename)); } } @@ -1005,8 +1008,9 @@ solib_add (const char *pattern, int from_tty, int readsyms) /* If no pattern was given, be quiet for shared libraries we have already loaded. */ if (pattern && (from_tty || info_verbose)) - gdb_printf (_ ("Symbols already loaded for %s\n"), - gdb.so_name.c_str ()); + gdb_printf (_ ("Symbols already loaded for %ps\n"), + styled_string (file_name_style.style (), + gdb.so_name.c_str ())); } else if (solib_read_symbols (gdb, add_flags)) loaded_any_symbols = true; |