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.
This commit is contained in:
parent
84204ed7c0
commit
a40635885c
4 changed files with 24 additions and 16 deletions
|
@ -76,7 +76,7 @@ setup_sections (bfd *abfd, asection *sect, void *data_voidp)
|
|||
prot |= GDB_MMAP_PROT_EXEC;
|
||||
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdout,
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"module \"%s\" section \"%s\" size %s prot %u\n",
|
||||
bfd_get_filename (abfd),
|
||||
bfd_get_section_name (abfd, sect),
|
||||
|
@ -98,7 +98,7 @@ setup_sections (bfd *abfd, asection *sect, void *data_voidp)
|
|||
addr = gdbarch_infcall_mmap (target_gdbarch (), data->last_size,
|
||||
data->last_prot);
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdout,
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"allocated %s bytes at %s prot %u\n",
|
||||
paddress (target_gdbarch (), data->last_size),
|
||||
paddress (target_gdbarch (), addr),
|
||||
|
@ -672,7 +672,7 @@ compile_object_load (const char *object_file, const char *source_file,
|
|||
if (sym->flags != 0)
|
||||
continue;
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdout,
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"lookup undefined ELF symbol \"%s\"\n",
|
||||
sym->name);
|
||||
sym->flags = BSF_GLOBAL;
|
||||
|
@ -716,7 +716,7 @@ compile_object_load (const char *object_file, const char *source_file,
|
|||
GDB_MMAP_PROT_READ);
|
||||
gdb_assert (regs_addr != 0);
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdout,
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"allocated %s bytes at %s for registers\n",
|
||||
paddress (target_gdbarch (),
|
||||
TYPE_LENGTH (regs_type)),
|
||||
|
@ -740,7 +740,7 @@ compile_object_load (const char *object_file, const char *source_file,
|
|||
| GDB_MMAP_PROT_WRITE));
|
||||
gdb_assert (out_value_addr != 0);
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdout,
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"allocated %s bytes at %s for printed value\n",
|
||||
paddress (target_gdbarch (),
|
||||
TYPE_LENGTH (out_value_type)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue