aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2015-05-16 14:14:10 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2015-05-16 14:14:10 +0200
commitb6de3f9642c58439c31690255c3a4326728da88d (patch)
tree0e0e2f3c38b891f35ab036e7be12f5dc89a09d0f /gdb/compile
parent24da9638e206f9d83c0aa0bd419e16c9d97dd76f (diff)
downloadgdb-b6de3f9642c58439c31690255c3a4326728da88d.zip
gdb-b6de3f9642c58439c31690255c3a4326728da88d.tar.gz
gdb-b6de3f9642c58439c31690255c3a4326728da88d.tar.bz2
compile: Add one debug message
gdb/ChangeLog 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com> * compile/compile-object-load.c (compile_object_load): Add COMPILE_DEBUG message.
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile-object-load.c6
1 files changed, 6 insertions, 0 deletions
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);
}