diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-05-19 14:27:06 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-05-19 14:27:06 +0200 |
commit | a40635885c50f14782d80251a8966bf4dd271f76 (patch) | |
tree | e0c31f8427dd73679cc5dffa2f00d4de77e71436 /gdb/compile/compile.c | |
parent | 84204ed7c0ccaa790dff8e124e710277d9a8abc9 (diff) | |
download | gdb-a40635885c50f14782d80251a8966bf4dd271f76.zip gdb-a40635885c50f14782d80251a8966bf4dd271f76.tar.gz gdb-a40635885c50f14782d80251a8966bf4dd271f76.tar.bz2 |
compile: gdb_stdout -> gdb_stdlog
Please send debug output to gdb_stdlog.
OK but gdb/compile/ is using now only gdb_stdout; the error above is due to
a copy-paste. So I will send a follow-up patch to change all the other
gdb/compile/ gdb_stdout strings to gdb_stdlog.
gdb/ChangeLog
2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
* compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
(gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
* compile/compile-object-load.c (setup_sections, compile_object_load):
Likewise.
* compile/compile.c (compile_to_object): Likewise.
Diffstat (limited to 'gdb/compile/compile.c')
-rw-r--r-- | gdb/compile/compile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index fbecf8c..499c530 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -528,7 +528,7 @@ compile_to_object (struct command_line *cmd, const char *cmd_string, expr_block, expr_pc); make_cleanup (xfree, code); if (compile_debug) - fprintf_unfiltered (gdb_stdout, "debug output:\n\n%s", code); + fprintf_unfiltered (gdb_stdlog, "debug output:\n\n%s", code); os_rx = osabi_triplet_regexp (gdbarch_osabi (gdbarch)); arch_rx = gdbarch_gnu_triplet_regexp (gdbarch); @@ -553,9 +553,9 @@ compile_to_object (struct command_line *cmd, const char *cmd_string, { int argi; - fprintf_unfiltered (gdb_stdout, "Passing %d compiler options:\n", argc); + fprintf_unfiltered (gdb_stdlog, "Passing %d compiler options:\n", argc); for (argi = 0; argi < argc; argi++) - fprintf_unfiltered (gdb_stdout, "Compiler option %d: <%s>\n", + fprintf_unfiltered (gdb_stdlog, "Compiler option %d: <%s>\n", argi, argv[argi]); } @@ -572,7 +572,7 @@ compile_to_object (struct command_line *cmd, const char *cmd_string, fclose (src); if (compile_debug) - fprintf_unfiltered (gdb_stdout, "source file produced: %s\n\n", + fprintf_unfiltered (gdb_stdlog, "source file produced: %s\n\n", source_file); /* Call the compiler and start the compilation process. */ @@ -583,7 +583,7 @@ compile_to_object (struct command_line *cmd, const char *cmd_string, error (_("Compilation failed.")); if (compile_debug) - fprintf_unfiltered (gdb_stdout, "object file produced: %s\n\n", + fprintf_unfiltered (gdb_stdlog, "object file produced: %s\n\n", object_file); discard_cleanups (inner_cleanup); |