This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v5 1/7] compile: Add one debug message
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches at sourceware dot org
- Cc: Phil Muldoon <pmuldoon at redhat dot com>
- Date: Fri, 15 May 2015 17:49:15 +0100
- Subject: Re: [PATCH v5 1/7] compile: Add one debug message
- Authentication-results: sourceware.org; auth=none
- References: <20150513201615 dot 4051 dot 5261 dot stgit at host1 dot jankratochvil dot net> <20150513201625 dot 4051 dot 2512 dot stgit at host1 dot jankratochvil dot net>
On 05/13/2015 09:16 PM, Jan Kratochvil wrote:
> diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c
> index fe23448..745d787 100644
> --- a/gdb/compile/compile-object-load.c
> +++ b/gdb/compile/compile-object-load.c
> @@ -580,6 +580,12 @@ compile_object_load (const char *object_file, const char *source_file)
> TYPE_LENGTH (regs_type),
> GDB_MMAP_PROT_READ);
> gdb_assert (regs_addr != 0);
> + if (compile_debug)
> + fprintf_unfiltered (gdb_stdout,
> + "allocated %s bytes at %s for registers\n",
> + paddress (target_gdbarch (),
> + TYPE_LENGTH (regs_type)),
> + paddress (target_gdbarch (), regs_addr));
> store_regs (regs_type, regs_addr);
> }
>
Please send debug output to gdb_stdlog. OK with that change.
Thanks,
Pedro Alves