]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
Dump the hex address of external functions, to aid with debugging
authorRhys Weatherley <rweather@southern-storm.com.au>
Thu, 10 Jun 2004 00:38:35 +0000 (00:38 +0000)
committerRhys Weatherley <rweather@southern-storm.com.au>
Thu, 10 Jun 2004 00:38:35 +0000 (00:38 +0000)
native disassembly dumps.

ChangeLog
jit/jit-dump.c

index 525133d6390b41d63246448a2b51f41ee41951f3..614f44260e14efc3c33835e30b1ac6ed6e273090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@
        branches, to try to minimize the probability that the pool will
        be flushed in the middle of a loop body.
 
+       * jit/jit-dump.c: dump the hex address of external functions,
+       to aid with debugging native disassembly dumps.
+
 2004-06-08  Rhys Weatherley  <rweather@southern-storm.com.au>
 
        * jit/Makefile.am, jit/jit-cpuid-x86.c, jit/jit-cpuid-x86.h:
index a48134cb3bee18d4d89bd737fabd26fc5c0265aa..adcd4cf10db1ac94a4f68d11573484a5843181a4 100644 (file)
@@ -388,8 +388,9 @@ void jit_dump_insn(FILE *stream, jit_function_t func, jit_insn_t insn)
        else if((flags & JIT_OPCODE_IS_CALL_EXTERNAL) != 0)
        {
                if(insn->value1)
-                       fprintf(stream, "call_external %s",
-                                       (const char *)(insn->value1));
+                       fprintf(stream, "call_external %s (0x%08lx)",
+                                       (const char *)(insn->value1),
+                                       (long)(jit_nuint)(insn->dest));
                else
                        fprintf(stream, "call_external 0x08%lx",
                                        (long)(jit_nuint)(insn->dest));