Eliot Miranda uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-eem.820.mcz==================== Summary ====================
Name: Tools-eem.820
Author: eem
Time: 14 June 2018, 4:02:54.342614 pm
UUID: 7c6f4563-ffe9-4fa7-ac3c-eccfbd88b635
Ancestors: Tools-nice.819
Provide concretePCForAbstractPC:, the inverse of abstractPCForConcretePC:. Used by the TempScopeEditor
=============== Diff against Tools-nice.819 ===============
Item was added:
+ ----- Method: CompiledCode>>concretePCForAbstractPC: (in category '*Tools-Debugger-support') -----
+ concretePCForAbstractPC: abstractPCQuery
+ "Answer the concretePC matching abstractPC."
+
+ | abstractPC scanner client endPC |
+ self flag: 'belongs in DebuggerMethodMap?'.
+ abstractPC := 1.
+ scanner := InstructionStream on: self.
+ client := InstructionClient new.
+ "cache endPC for methods with embedded source; finding out the endPC is very slow in this case..."
+ endPC := self endPC.
+ [abstractPC >= abstractPCQuery ifTrue:
+ [^scanner pc].
+ abstractPC := abstractPC + 1.
+ scanner interpretNextInstructionFor: client.
+ scanner pc < endPC] whileTrue.
+ ^endPC!