#include "symfile.h"
#include "block.h"
#include "filenames.h"
+#include "cli/cli-style.h"
/* We need to save a pointer to the real symbol functions.
Plus, the debug versions are malloc'd because we have to NULL out the
{
if (verbose && !printed)
{
- gdb_printf (_("Reading symbols from %s...\n"),
- objfile_name (this));
+ gdb_printf (_("Reading symbols from %ps...\n"),
+ styled_string (file_name_style.style (),
+ objfile_name (this)));
printed = true;
}
iter->read_partial_symbols (this);
}
}
if (printed && !objfile_has_symbols (this))
- gdb_printf (_("(No debugging symbols found in %s)\n"),
- objfile_name (this));
+ gdb_printf (_("(No debugging symbols found in %ps)\n"),
+ styled_string (file_name_style.style (),
+ objfile_name (this)));
}
}
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)
objf = symbol_file_add (filename.get (), add_flags, §ion_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);
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