From: Rhys Weatherley Date: Thu, 10 Jun 2004 00:38:35 +0000 (+0000) Subject: Dump the hex address of external functions, to aid with debugging X-Git-Tag: r.0.0.4~23 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ac58f0a8ae756dd166ea1f782fb2d0d0bda1d493;p=francis%2Flibjit.git Dump the hex address of external functions, to aid with debugging native disassembly dumps. --- diff --git a/ChangeLog b/ChangeLog index 525133d..614f442 100644 --- 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 * jit/Makefile.am, jit/jit-cpuid-x86.c, jit/jit-cpuid-x86.h: diff --git a/jit/jit-dump.c b/jit/jit-dump.c index a48134c..adcd4cf 100644 --- a/jit/jit-dump.c +++ b/jit/jit-dump.c @@ -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));