aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-08-29 14:48:56 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-09-15 10:13:50 +0100
commit7d9931cc31b9adea7207e41d28e632c951134de8 (patch)
treed7fe74cdabbd7066767b6690975884e3d398e468 /gdb/symfile.c
parent7c93730fe50c22129e751d8479e64bc970b75aac (diff)
downloadgdb-7d9931cc31b9adea7207e41d28e632c951134de8.zip
gdb-7d9931cc31b9adea7207e41d28e632c951134de8.tar.gz
gdb-7d9931cc31b9adea7207e41d28e632c951134de8.tar.bz2
gdb: add some missing filename styling
Spotted a few places where we can add filename styling. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 1b46ec4..70ade9e 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2322,8 +2322,8 @@ add_symbol_file_command (const char *args, int from_tty)
statements because hex_string returns a local static
string. */
- gdb_printf (_("add symbol table from file \"%s\""),
- filename.get ());
+ gdb_printf (_("add symbol table from file \"%ps\""),
+ styled_string (file_name_style.style (), filename.get ()));
section_addr_info section_addrs;
std::vector<sect_opt>::const_iterator it = sect_opts.begin ();
if (!seen_addr)
@@ -2369,8 +2369,8 @@ add_symbol_file_command (const char *args, int from_tty)
objf = symbol_file_add (filename.get (), add_flags, &section_addrs,
flags);
if (!objfile_has_symbols (objf) && objf->per_bfd->minimal_symbol_count <= 0)
- warning (_("newly-added symbol file \"%s\" does not provide any symbols"),
- filename.get ());
+ warning (_("newly-added symbol file \"%ps\" does not provide any symbols"),
+ styled_string (file_name_style.style (), filename.get ()));
if (seen_offset)
set_objfile_default_section_offset (objf, section_addrs, offset);
@@ -2494,8 +2494,9 @@ reread_symbols (int from_tty)
new_modtime = new_statbuf.st_mtime;
if (new_modtime != objfile->mtime)
{
- gdb_printf (_("`%s' has changed; re-reading symbols.\n"),
- objfile_name (objfile));
+ gdb_printf (_("`%ps' has changed; re-reading symbols.\n"),
+ styled_string (file_name_style.style (),
+ objfile_name (objfile)));
/* There are various functions like symbol_file_add,
symfile_bfd_open, syms_from_objfile, etc., which might