-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tantalizingly close to opening debugger ...
- Loading branch information
1 parent
085c8d7
commit a88ccdc
Showing
93 changed files
with
304 additions
and
320 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
...pez-GemStone-Server-33x-Core.package/TDGsExternalSession.class/instance/_signalIfError.st
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
3 changes: 3 additions & 0 deletions
3
...opez-GemStone-Server-33x-Core.package/TDGsExternalSession.class/instance/handlingError.st
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,3 @@ | ||
accessing | ||
handlingError | ||
^ handlingError ifNil: [ handlingError := false ] |
4 changes: 4 additions & 0 deletions
4
...itory/Topez-GemStone-Server-33x-Core.package/TDGsExternalSession.class/instance/topez..st
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,4 @@ | ||
accessing | ||
topez: anObject | ||
|
||
topez := anObject |
4 changes: 4 additions & 0 deletions
4
...sitory/Topez-GemStone-Server-33x-Core.package/TDGsExternalSession.class/instance/topez.st
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,4 @@ | ||
accessing | ||
topez | ||
|
||
^topez |
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
19 changes: 19 additions & 0 deletions
19
...itory/Topez-GemStone-Server-33x-Core.package/TDRemoteDebugger.class/instance/frameList.st
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,19 @@ | ||
private | ||
frameList | ||
| l stack frames | | ||
stack := self theStack. | ||
frames := stack frames. | ||
l := frames | ||
withIndexCollect: [ :frame :index | | ||
| str attributes | | ||
attributes := {}. | ||
str := index asString , '. ' , frame printString. | ||
frame homeMethod == self homeMethod | ||
ifTrue: [ attributes add: TextEmphasis bold ]. | ||
frame frameSelfOop == self receiverOop | ||
ifTrue: [ | ||
attributes | ||
add: TextEmphasis underlined; | ||
add: TextEmphasis italic ]. | ||
Text string: str attributes: attributes ]. | ||
^ l asArray |
42 changes: 42 additions & 0 deletions
42
...e/TDRemoteDebugger.class/instance/itemSelected.listElement.selectedIndex.shiftPressed..st
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,42 @@ | ||
tools | ||
itemSelected: miniTool listElement: listElement selectedIndex: index shiftPressed: shiftPressed | ||
| currentFrame sourceEditorSpec sourceClientElement enabled disabled | | ||
theMiniTool := miniTool. | ||
index = 0 | ||
ifTrue: [ ^ false ]. | ||
self theStack navigateFrame: index. | ||
currentFrame := self theStack currentFrame. | ||
self | ||
homeMethod: currentFrame homeMethod; | ||
receiverOop: currentFrame frameSelfOop. | ||
sourceEditorSpec := (TDEditorSpec topez: self topez editorAspect: #'source') | ||
parentObject: listElement parent; | ||
windowId: sourceWindowId; | ||
yourself. | ||
enabled := disabled := {#'debuggingProcess'}. | ||
debuggingProcess | ||
ifTrue: [ disabled := {} ] | ||
ifFalse: [ enabled := {} ]. | ||
^ sourceWindowId | ||
ifNil: [ | ||
sourceWindowId := currentFrame editUsing: sourceEditorSpec. | ||
self objectSerializer | ||
toString: | ||
{#'setMenuCategories:'. | ||
enabled. | ||
#'clearMenuCategories:'. | ||
disabled. | ||
#'refreshList'. | ||
nil} ] | ||
ifNotNil: [ | ||
sourceClientElement := currentFrame clientElementUsing: sourceEditorSpec. | ||
self objectSerializer | ||
toString: | ||
{#'setMenuCategories:'. | ||
enabled. | ||
#'clearMenuCategories:'. | ||
disabled. | ||
#'editStonElement:'. | ||
sourceClientElement. | ||
#'setList:'. | ||
(self frameList)} ] |
4 changes: 4 additions & 0 deletions
4
...ry/Topez-GemStone-Server-33x-Core.package/TDRemoteDebugger.class/instance/receiverOop..st
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,4 @@ | ||
accessing | ||
receiverOop: anObject | ||
|
||
receiverOop := anObject |
4 changes: 4 additions & 0 deletions
4
...ory/Topez-GemStone-Server-33x-Core.package/TDRemoteDebugger.class/instance/receiverOop.st
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,4 @@ | ||
accessing | ||
receiverOop | ||
|
||
^receiverOop |
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
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
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
13 changes: 13 additions & 0 deletions
13
.../Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/_nativeStack.st
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,13 @@ | ||
private | ||
_nativeStack | ||
^ (self dynamicInstVarAt: #'_nativeStack') | ||
ifNil: [ | ||
| _nativeStack | | ||
_nativeStack := self session | ||
executeBlock: [ :processOop :fIndex | | ||
| process | | ||
process := Object _objectForOop: processOop. | ||
process _nativeStack ] | ||
with: self processOop | ||
with: self frameIndex. | ||
self dynamicInstVarAt: #'_nativeStack' put: _nativeStack ] |
4 changes: 0 additions & 4 deletions
4
...ez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/argAndTempNames..st
This file was deleted.
Oops, something went wrong.
25 changes: 22 additions & 3 deletions
25
...pez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/argAndTempNames.st
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 |
---|---|---|
@@ -1,4 +1,23 @@ | ||
as yet unclassified | ||
private | ||
argAndTempNames | ||
argAndTempNames ifNil: [ argAndTempNames := (self frameContents at: 9) collect: [ :each | each asString ] ]. | ||
^ argAndTempNames | ||
argAndTempNames | ||
ifNil: [ | ||
| resultString | | ||
resultString := self session | ||
executeBlock: [ :processOop | | ||
| process fc strm ar sz | | ||
strm := WriteStream on: String new. | ||
strm nextPut: $[. | ||
process := Object _objectForOop: processOop. | ||
ar := fc := process _frameContentsAt: 9. | ||
sz := ar size. | ||
1 to: sz do: [ :i | | ||
strm | ||
space; | ||
nextPutAll: (ar at: i) asString. | ||
i < sz | ||
ifTrue: [ strm nextPut: $, ] ]. | ||
strm nextPut: $]. | ||
strm contents ]. | ||
argAndTempNames := STON fromString: resultString ]. | ||
^ argAndTempNames |
5 changes: 3 additions & 2 deletions
5
...-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/argAndTempNamesAt..st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
as yet unclassified | ||
private | ||
argAndTempNamesAt: index | ||
^ self frameContents at: 10 + index | ||
self halt. | ||
^ self frameContents at: 10 + index |
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
2 changes: 1 addition & 1 deletion
2
...Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/baseNodeNames.st
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
private | ||
baseNodeNames | ||
^ self baseNodeMap keys |
19 changes: 2 additions & 17 deletions
19
...tone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/calculateSelectionRange.st
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 |
---|---|---|
@@ -1,23 +1,8 @@ | ||
as yet unclassified | ||
private | ||
calculateSelectionRange | ||
| method stepPoint begin end | | ||
method := self method. | ||
(method respondsTo: #'_stepPointForIp:level:isNative:') | ||
ifTrue: [ | ||
stepPoint := method | ||
perform: #'_stepPointForIp:level:isNative:' | ||
withArguments: | ||
{(self ipOffset). | ||
(self frameIndex). | ||
(self process _nativeStack)} ] | ||
ifFalse: [ | ||
"v3.3" | ||
stepPoint := method | ||
perform: #'_stepPointForIp:level:useNext:' | ||
withArguments: | ||
{(self ipOffset). | ||
(self frameIndex). | ||
(self process _nativeStack)} ]. | ||
stepPoint := self stepPoint. | ||
begin := method _sourceOffsetsAt: stepPoint. | ||
end := self calculateSourceRangeEnd: begin in: method sourceString. | ||
^ begin to: end |
2 changes: 1 addition & 1 deletion
2
...-Server-33x-Core.package/TDRemoteStackFrame.class/instance/calculateSourceRangeEnd.in..st
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
2 changes: 1 addition & 1 deletion
2
...GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/dotSelfLiteralArray.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
private | ||
dotSelfLiteralArray | ||
| litVarArray tempNames | | ||
litVarArray := {}. | ||
|
2 changes: 1 addition & 1 deletion
2
...Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/dotSelfObject.st
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
private | ||
dotSelfObject | ||
^ self frameSelf |
2 changes: 1 addition & 1 deletion
2
...z-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/dotSelfWorkspace..st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
private | ||
dotSelfWorkspace: topez | ||
| strm | | ||
strm := WriteStream on: String new. | ||
|
2 changes: 1 addition & 1 deletion
2
...ez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/elementNodeNames.st
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
private | ||
elementNodeNames | ||
self process == nil | ||
ifTrue: [ ^ #() ]. | ||
|
8 changes: 3 additions & 5 deletions
8
...-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/findFrameSuchThat..st
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
as yet unclassified | ||
private | ||
findFrameSuchThat: testBlock | ||
"Search self and my sender chain for first one that satisfies testBlock. Return nil if none satisfy" | ||
|
||
| frame | | ||
frame := self. | ||
[ frame isNil ] | ||
whileFalse: [ | ||
self frameContents ~~ nil | ||
ifTrue: [ | ||
(testBlock value: frame) | ||
ifTrue: [ ^ frame ] ]. | ||
(testBlock value: frame) | ||
ifTrue: [ ^ frame ]. | ||
frame := frame next ]. | ||
^ nil |
4 changes: 0 additions & 4 deletions
4
...opez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameContents..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameContents.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...y/Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameIndex..st
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
private | ||
frameIndex: anInteger | ||
frameIndex := anInteger |
2 changes: 1 addition & 1 deletion
2
...ry/Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameIndex.st
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
private | ||
frameIndex | ||
^ frameIndex |
3 changes: 0 additions & 3 deletions
3
...ory/Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameSelf.st
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...opez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameSelfClass.st
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,18 @@ | ||
accessing | ||
frameSelfClass | ||
^ (self dynamicInstVarAt: #'frameSelfClass') | ||
ifNil: [ | ||
| className class | | ||
className := self session | ||
executeBlock: [ :processOop :fIndex | | ||
| receiver process fc | | ||
process := Object _objectForOop: processOop. | ||
fc := process _frameContentsAt: fIndex. | ||
receiver := (fc at: 8) | ||
ifNotNil: [ :frameSelf | frameSelf ] | ||
ifNil: [ fc at: 10 ]. | ||
receiver class name ] | ||
with: self processOop | ||
with: self frameIndex. | ||
class := GsSession currentSession symbolList objectNamed: className. | ||
self dynamicInstVarAt: #'frameSelfClass' put: class ] |
3 changes: 3 additions & 0 deletions
3
.../Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/frameSelfOop.st
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,3 @@ | ||
private | ||
frameSelfOop | ||
^ self receiverOop |
2 changes: 1 addition & 1 deletion
2
...ry/Topez-GemStone-Server-33x-Core.package/TDRemoteStackFrame.class/instance/homeMethod.st
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
as yet unclassified | ||
private | ||
homeMethod | ||
^ self method homeMethod |
Oops, something went wrong.