Support bounded machine instruction step counts in MCP
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user