This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v4 01/11] compile: Add one debug message
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Phil Muldoon <pmuldoon at redhat dot com>
- Date: Sun, 03 May 2015 16:06:58 +0200
- Subject: [PATCH v4 01/11] compile: Add one debug message
- Authentication-results: sourceware.org; auth=none
- References: <20150503140647 dot 18583 dot 2012 dot stgit at host1 dot jankratochvil dot net>
Hi,
trivial, there is an inter-patch dependency.
Jan
2015-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
* compile/compile-object-load.c (compile_object_load): Add
COMPILE_DEBUG message.
---
gdb/compile/compile-object-load.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c
index 8a7f232..7d795cf 100644
--- a/gdb/compile/compile-object-load.c
+++ b/gdb/compile/compile-object-load.c
@@ -576,6 +576,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);
}