Support bounded machine instruction step counts in MCP

This commit is contained in:
Александр Петров
2026-09-17 23:22:37 +03:00
parent e8189b137a
commit 259c782190
13 changed files with 62 additions and 10 deletions
+3 -1
View File
@@ -163,8 +163,10 @@ function exports.startplugin()
state="running"
event("running",{reason=command})
if command=="step" then
local count=number(args.count or 1,64)
assert(count>=1,"step count должен быть 1..64")
pending={kind="step",time=now()}
cpu().debug:step(1)
cpu().debug:step(count)
elseif command=="step_over" then
pending={kind="step_over",time=now()}
machine().debugger:command("over 1")