#include <unordered_map>
#include "async-event.h"
#include "gdbsupport/selftest.h"
+#include "cli/cli-style.h"
/* The remote target. */
{
static int warning_issued = 0;
- gdb_printf (_("Reading %s from remote target...\n"),
- filename);
+ gdb_printf (_("Reading %ps from remote target...\n"),
+ styled_string (file_name_style.style (), filename));
if (!warning_issued)
{
remote_hostio_error (remote_errno);
if (from_tty)
- gdb_printf (_("Successfully sent file \"%s\".\n"), local_file);
+ gdb_printf (_("Successfully sent file \"%ps\".\n"),
+ styled_string (file_name_style.style (), local_file));
}
void
remote_hostio_error (remote_errno);
if (from_tty)
- gdb_printf (_("Successfully fetched file \"%s\".\n"), remote_file);
+ gdb_printf (_("Successfully fetched file \"%ps\".\n"),
+ styled_string (file_name_style.style (), remote_file));
}
void
remote_hostio_error (remote_errno);
if (from_tty)
- gdb_printf (_("Successfully deleted file \"%s\".\n"), remote_file);
+ gdb_printf (_("Successfully deleted file \"%ps\".\n"),
+ styled_string (file_name_style.style (), remote_file));
}
static void
#include "target-connection.h"
#include "valprint.h"
#include "cli/cli-decode.h"
+#include "cli/cli-style.h"
static void generic_tls_error (void) ATTRIBUTE_NORETURN;
if (current_program_space->symfile_object_file != NULL)
{
objfile *objf = current_program_space->symfile_object_file;
- gdb_printf (_("Symbols from \"%s\".\n"),
- objfile_name (objf));
+ gdb_printf (_("Symbols from \"%ps\".\n"),
+ styled_string (file_name_style.style (),
+ objfile_name (objf)));
}
for (target_ops *t = current_inferior ()->top_target ();
gdb_printf ("Detaching from pid %s\n",
target_pid_to_str (ptid_t (pid)).c_str ());
else
- gdb_printf (_("Detaching from program: %s, %s\n"), exec_file,
+ gdb_printf (_("Detaching from program: %ps, %s\n"),
+ styled_string (file_name_style.style (), exec_file),
target_pid_to_str (ptid_t (pid)).c_str ());
}
const char *exec_file = get_exec_file (0);
if (exec_file != nullptr)
- gdb_printf ("Attaching to program: %s, %s\n", exec_file,
+ gdb_printf ("Attaching to program: %ps, %s\n",
+ styled_string (file_name_style.style (), exec_file),
target_pid_to_str (ptid_t (pid)).c_str ());
else
gdb_printf ("Attaching to %s\n",