-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #920 from StevenCostiou/breakpoints-visualization-…
…debugger Breakpoints in debugger
- Loading branch information
Showing
4 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : 'DebugPoint' } | ||
|
||
{ #category : '*NewTools-Debugger' } | ||
DebugPoint class >> allInstalledInMethod: aCompiledMethod [ | ||
"We don't expect this code to be slow: there are rarely thousands of breakpoints installed in a running system. Therefore the enumerating of all links of all breakpoints should be quick because few breakpoints are involved. Future work could store install-time metadata in debug points to simplify this." | ||
^ self all select: [ :dp | | ||
dp link nodes anySatisfy: [ :n | | ||
n methodNode compiledMethod == aCompiledMethod method ] ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Extension { #name : 'DebugPointIconStyler' } | ||
|
||
{ #category : '*NewTools-Debugger' } | ||
DebugPointIconStyler >> buildIconStyleFor: dp to: aNode [ | ||
"there probably is a better way that just adding a second row but i couldn't figure out rubric" | ||
|
||
| r | | ||
r := self segmentMorphClass from: aNode start to: aNode stop + 1. | ||
|
||
r label: (self iconLabelBlock: dp). | ||
r icon: (self iconFor: dp). | ||
r iconBlock: (self iconBlock: dp). | ||
r color: self highlightColor. | ||
r borderColor: self borderColor. | ||
^ r | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters