Eliot Miranda uploaded a new version of VMMakerUI to project VM Maker:
http://source.squeak.org/VMMaker/VMMakerUI-eem.25.mcz==================== Summary ====================
Name: VMMakerUI-eem.25
Author: eem
Time: 3 April 2020, 3:55:27.124363 pm
UUID: 67980b47-0d64-4922-bf78-ee66b61b81ac
Ancestors: VMMakerUI-eem.24
Make click-step also apply to simulated leaf calls.
=============== Diff against VMMakerUI-eem.24 ===============
Item was changed:
----- Method: Cogit>>setClickStepBreakBlock (in category '*VMMakerUI-user interface') -----
setClickStepBreakBlock
"Set the break block to present a confirmer, breaking if true, and restoring the previous break block.
If an open debugger on the receiver can be found, proceed it."
<doNotGenerate>
| previousBreakBlock previousAtEachStepBlock previousBreakPC previousSingleStep previousClickConfirm result |
(breakBlock isNil or: [breakBlock method ~~ thisContext method]) ifTrue:
[previousBreakBlock := breakBlock.
previousAtEachStepBlock := coInterpreter atEachStepBlock.
previousBreakPC := breakPC.
previousSingleStep := singleStep.
previousClickConfirm := clickConfirm.
breakBlock := [:ign|
(processor pc ~= previousBreakPC
and: [(result := self promptClickStep) == true])
ifTrue: [false]
ifFalse: [breakBlock := previousBreakBlock.
coInterpreter atEachStepBlock: previousAtEachStepBlock.
breakPC := previousBreakPC.
singleStep := previousSingleStep.
clickConfirm := previousClickConfirm.
true]].
coInterpreter atEachStepBlock:
[previousAtEachStepBlock value.
(coInterpreter localIP ~= previousBreakPC
and: [(result := self promptClickStep) == true]) ifFalse:
[breakBlock := previousBreakBlock.
coInterpreter atEachStepBlock: previousAtEachStepBlock.
breakPC := previousBreakPC.
singleStep := previousSingleStep.
clickConfirm := previousClickConfirm.
self halt]].
singleStep := breakPC := clickConfirm := result ~~ #proceed].
(World submorphs
detect:
[:m|
m model isDebugger
and: [(m model interruptedProcess suspendedContext findContextSuchThat:
[:ctxt|
(ctxt receiver == self
+ and: [ctxt selector == #simulateCogCodeAt:
+ or: [ctxt selector == #simulateLeafCallOf:]])
- and: [ctxt selector == #simulateCogCodeAt:])
or: [ctxt receiver == coInterpreter
and: [ctxt selector == #interpret]]]) notNil]]
ifNone: []) ifNotNil:
[:debuggerWindow|
WorldState addDeferredUIMessage:
[debuggerWindow model proceed]]!