From 2f81ec02406bf3c7e32c1f918bf5b78a12b14759 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 27 May 2024 10:06:30 +0200 Subject: [PATCH] Fix linux step on leave function close #131 --- hld/Debugger.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hld/Debugger.hx b/hld/Debugger.hx index 7ce8118..a3bc7a8 100644 --- a/hld/Debugger.hx +++ b/hld/Debugger.hx @@ -289,7 +289,7 @@ class Debugger { while( true ) { cmd = api.wait(customTimeout == null ? 1000 : Math.ceil(customTimeout * 1000)); - if( cmd.r == Breakpoint && nextStep >= 0 ) { + if( cmd.r == Breakpoint && (nextStep >= 0 || onStep) ) { // On Linux, singlestep is not reset cmd.r = SingleStep; singleStep(cmd.tid,false);