Skip to content

Commit

Permalink
document and work around range retracing limitation for accessing for…
Browse files Browse the repository at this point in the history
…ked contexts

#90
  • Loading branch information
LinqLover committed Jul 24, 2022
1 parent 2a06144 commit 174b96a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
documentation
rangeRetracingForkAccess

"Currently, access from the simulated code to stored context instances from its stack might fail when the execution has been forked before. A prominent example of this limitation are non-local returns within an unwind context (#aboutToReturn:through:). See https://github.com/hpi-swa-lab/squeak-tracedebugger/issues/90."
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"moveUpstream" : "ct 3/11/2022 20:15",
"on:" : "ct 11/20/2021 21:25",
"proxyHacks" : "ct 7/3/2022 20:56",
"rangeRetracingForkAccess" : "ct 7/24/2022 15:45",
"traceClass" : "ct 11/18/2021 18:06",
"traceForBlock:" : "ct 5/14/2022 16:26",
"traceForContext:" : "ct 5/14/2022 16:14" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
labels & details
detailsTextForValue: value

[value isText ifTrue: [^ self detailsTextForTextValue: value].
value isForm ifTrue: [^ self detailsTextForFormValue: value].
value isMorph ifTrue: [^ self detailsTextForMorphValue: value].
self flag: #rangeRetracingForkAccess. "We would want to use non-local returns here which would send #aboutToReturn:through: which is currently not supported during range retracing."

^ self detailsTextForObjectValue: value]
on: self commonErrors do: [:ex |
^ self errorText: 'display error' exception: ex]
^ [true
caseOf:
{[value isText] -> [self detailsTextForTextValue: value].
[value isForm] -> [self detailsTextForFormValue: value].
[value isMorph] -> [self detailsTextForMorphValue: value]}
otherwise: [self detailsTextForObjectValue: value]]
on: self commonErrors do: [:ex |
self errorText: 'display error' exception: ex]
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"detailsTextForObjectValue:" : "ct 7/21/2022 21:17",
"detailsTextForResult:fromRoot:" : "ct 7/22/2022 20:57",
"detailsTextForTextValue:" : "ct 7/22/2022 00:25",
"detailsTextForValue:" : "ct 7/22/2022 13:30",
"detailsTextForValue:" : "ct 7/24/2022 15:46",
"doItContext" : "ct 6/18/2022 23:34",
"doItReceiver" : "ct 6/18/2022 23:34",
"errorLabelFor:" : "ct 7/3/2022 23:48",
Expand Down

0 comments on commit 174b96a

Please sign in to comment.