[Vm-dev] VM Maker: VMMakerUI-eem.45.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Aug 9 20:02:52 UTC 2021
Eliot Miranda uploaded a new version of VMMakerUI to project VM Maker:
http://source.squeak.org/VMMaker/VMMakerUI-eem.45.mcz
==================== Summary ====================
Name: VMMakerUI-eem.45
Author: eem
Time: 9 August 2021, 1:02:50.72182 pm
UUID: 7b08a9a4-296e-4d87-82b6-2c1efef07090
Ancestors: VMMakerUI-eem.44
Fix the extra halt on hitting proceed in the click step dialog.
=============== Diff against VMMakerUI-eem.44 ===============
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 == true ifTrue: [false] ifFalse: [previousBreakPC].
singleStep := previousSingleStep.
clickConfirm := previousClickConfirm.
+ result ~~ #proceed]].
- true]].
coInterpreter atEachStepBlock:
[previousAtEachStepBlock value.
(coInterpreter localIP ~= previousBreakPC
and: [(result := self promptClickStep) == true]) ifFalse:
[breakBlock := previousBreakBlock.
coInterpreter atEachStepBlock: previousAtEachStepBlock.
breakPC := previousBreakPC == true ifTrue: [false] ifFalse: [previousBreakPC].
singleStep := previousSingleStep.
clickConfirm := previousClickConfirm.
self halt]].
singleStep := breakPC := clickConfirm := result ~~ #proceed].
(World submorphs
detect:
[:m|
m model isDebugger
and: [(m model interruptedProcess suspendedContext
ifNil: [false] "happens if we're debugging this very method..."
ifNotNil:
[:suspendedContext|
suspendedContext findContextSuchThat:
[:ctxt|
(ctxt receiver == self
and: [ctxt selector == #simulateCogCodeAt:
or: [ctxt selector == #simulateLeafCallOf:]])
or: [ctxt receiver == coInterpreter
and: [ctxt selector == #interpret]]]]) notNil]]
ifNone: []) ifNotNil:
[:debuggerWindow|
WorldState addDeferredUIMessage:
[debuggerWindow model proceed]]!
More information about the Vm-dev
mailing list