From ac58f0a8ae756dd166ea1f782fb2d0d0bda1d493 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Thu, 10 Jun 2004 00:38:35 +0000 Subject: [PATCH] Dump the hex address of external functions, to aid with debugging native disassembly dumps. --- ChangeLog | 3 +++ jit/jit-dump.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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)); -- 2.47.3