show_compile_debug (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file, _("Compile debugging is %s.\n"), value);
+ gdb_printf (file, _("Compile debugging is %s.\n"), value);
}
\f
show_compile_args (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file, _("Compile command command-line arguments "
- "are \"%s\".\n"),
- value);
+ gdb_printf (file, _("Compile command command-line arguments "
+ "are \"%s\".\n"),
+ value);
}
/* String for 'set compile-gcc' and 'show compile-gcc'. */
show_compile_gcc (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file, _("Compile command GCC driver filename is \"%s\".\n"),
- value);
+ gdb_printf (file, _("Compile command GCC driver filename is \"%s\".\n"),
+ value);
}
/* Return DW_AT_producer parsed for get_selected_frame () (if any).
= current_language->compute_program (compiler.get (), input, gdbarch,
expr_block, expr_pc);
if (compile_debug)
- fprintf_unfiltered (gdb_stdlog, "debug output:\n\n%s", code.c_str ());
+ gdb_printf (gdb_stdlog, "debug output:\n\n%s", code.c_str ());
compiler->set_verbose (compile_debug);
{
int argi;
- fprintf_unfiltered (gdb_stdlog, "Passing %d compiler options:\n", argc);
+ gdb_printf (gdb_stdlog, "Passing %d compiler options:\n", argc);
for (argi = 0; argi < argc; argi++)
- fprintf_unfiltered (gdb_stdlog, "Compiler option %d: <%s>\n",
- argi, argv[argi]);
+ gdb_printf (gdb_stdlog, "Compiler option %d: <%s>\n",
+ argi, argv[argi]);
}
compile_file_names fnames = get_new_file_names ();
}
if (compile_debug)
- fprintf_unfiltered (gdb_stdlog, "source file produced: %s\n\n",
- fnames.source_file ());
+ gdb_printf (gdb_stdlog, "source file produced: %s\n\n",
+ fnames.source_file ());
/* If we don't do this, then GDB simply exits
when the compiler dies. */
error (_("Compilation failed."));
if (compile_debug)
- fprintf_unfiltered (gdb_stdlog, "object file produced: %s\n\n",
- fnames.object_file ());
+ gdb_printf (gdb_stdlog, "object file produced: %s\n\n",
+ fnames.object_file ());
/* Keep the source file. */
source_remover->keep ();