From 90a02d8fdd4cd065f6ef24b384af5876f116da00 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 30 Aug 2018 16:52:09 +0200 Subject: [PATCH] Add operator ID to the debugging information. --- engine/vm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index 6d37488..9fb3aff 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -1829,9 +1829,9 @@ static sxi32 VmByteCodeDump( void *pUserData /* Last argument to xConsumer() */ ) { static const char zDump[] = { - "===============================================================================================\n" - " SEQ | INSTRUCTION | P1 | P2 | P3 | LINE | SOURCE FILE \n" - "===============================================================================================\n" + "======================================================================================================\n" + " SEQ | OP | INSTRUCTION | P1 | P2 | P3 | LINE | SOURCE FILE \n" + "======================================================================================================\n" }; VmInstr *pInstr, *pEnd; sxi32 rc = SXRET_OK; @@ -1848,8 +1848,8 @@ static sxi32 VmByteCodeDump( break; } /* Format and call the consumer callback */ - rc = SyProcFormat(xConsumer, pUserData, " #%06u | %-10s | %8d | %8u | %#10x | %6u | %z\n", - n, VmInstrToString(pInstr->iOp), pInstr->iP1, pInstr->iP2, + rc = SyProcFormat(xConsumer, pUserData, " #%06u | %4d | %-10s | %8d | %8u | %#10x | %6u | %z\n", + n, pInstr->iOp, VmInstrToString(pInstr->iOp), pInstr->iP1, pInstr->iP2, SX_PTR_TO_INT(pInstr->p3), pInstr->iLine, pInstr->pFile); if(rc != SXRET_OK) { /* Consumer routine request an operation abort */