From d500a639a7d252b89466c5c12d048cc35ac5ae3a Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sat, 4 May 2024 19:44:15 +0200 Subject: [PATCH] tracing tweak --- debugger.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debugger.cpp b/debugger.cpp index 0cf89f2..c54db9e 100644 --- a/debugger.cpp +++ b/debugger.cpp @@ -1098,14 +1098,15 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto reset_cpu = false; while(*stop_event == EVENT_NONE) { - if (!single_step) - TRACE("---"); - if (trace_start_addr != -1 && c->getPC() == trace_start_addr) settrace(true); - if ((gettrace() || single_step) && (t_rl.has_value() == false || t_rl.value() == c->getPSW_runmode())) + if ((gettrace() || single_step) && (t_rl.has_value() == false || t_rl.value() == c->getPSW_runmode())) { + if (!single_step) + TRACE("---"); + disassemble(c, single_step ? cnsl : nullptr, c->getPC(), false); + } auto bp_result = c->check_breakpoint(); if (bp_result.has_value() && !single_step) {