compile: Add one debug message
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 16 May 2015 12:14:10 +0000 (14:14 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 16 May 2015 12:14:10 +0000 (14:14 +0200)
gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

* compile/compile-object-load.c (compile_object_load): Add
COMPILE_DEBUG message.

gdb/compile/compile-object-load.c

index fe234489849de52da344a5843c19ce20e9334681..745d787c1ff670ba041d1e246ab0d8befd6cd909 100644 (file)
@@ -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);
     }
 
This page took 0.025042 seconds and 4 git commands to generate.