249
|
1 |
"{ Package: 'stx:goodies/xmlsuite/xquery' }"
|
|
2 |
|
|
3 |
"{ NameSpace: XQuery }"
|
|
4 |
|
|
5 |
Perseus::DebuggerService subclass:#DebuggerService
|
|
6 |
instanceVariableNames:'lastIsn'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'XQuery-Debugging-Model'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!DebuggerService methodsFor:'event handling'!
|
|
14 |
|
|
15 |
breakpointReached
|
|
16 |
|
|
17 |
| currentIsn |
|
|
18 |
currentIsn := self instruction.
|
|
19 |
(lastIsn notNil
|
|
20 |
and:[lastIsn startPosition == currentIsn startPosition
|
|
21 |
and:[lastIsn stopPosition == currentIsn stopPosition]])
|
|
22 |
ifTrue:[lastIsn := currentIsn. ^self].
|
|
23 |
lastIsn := currentIsn.
|
|
24 |
super breakpointReached
|
|
25 |
|
|
26 |
"Created: / 20-04-2010 / 19:45:57 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
27 |
! !
|
|
28 |
|
|
29 |
!DebuggerService methodsFor:'interrupt handling'!
|
|
30 |
|
|
31 |
contextInterrupt
|
|
32 |
|
|
33 |
"/Transcript showCR:'>> CONTEXT INTERRUPT'
|
|
34 |
|
|
35 |
"Created: / 29-11-2008 / 12:05:41 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
36 |
"Modified: / 20-04-2010 / 19:56:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
37 |
!
|
|
38 |
|
|
39 |
terminateInterrupt
|
|
40 |
|
|
41 |
|nextInterpreter|
|
|
42 |
|
|
43 |
"/ Transcript showCR:'Service: TERMINATE INTERRUPT'.
|
|
44 |
nextInterpreter := interpreter nextInterpreter.
|
|
45 |
self detach.
|
|
46 |
(nextInterpreter notNil"and:[self showFullStackHolder value]")
|
|
47 |
ifTrue: [self attach: nextInterpreter].
|
|
48 |
self changed:#interpreter with: #terminated.
|
|
49 |
|
|
50 |
"Created: / 01-12-2008 / 08:34:40 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
51 |
"Modified: / 16-12-2008 / 13:44:29 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
52 |
"Modified: / 20-04-2010 / 20:00:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
53 |
!
|
|
54 |
|
|
55 |
tracepointInterrupt
|
|
56 |
|
|
57 |
"/ Transcript show:'Service: STEP INTERRUPT: '.
|
|
58 |
"/ self context displayOn: Transcript.
|
|
59 |
"/ Transcript cr.
|
|
60 |
|
|
61 |
mode tracepointInterrupt
|
|
62 |
|
|
63 |
"Created: / 13-12-2008 / 12:55:22 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
64 |
"Modified: / 17-12-2008 / 11:27:40 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
65 |
"Modified: / 20-04-2010 / 19:57:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!DebuggerService class methodsFor:'documentation'!
|
|
69 |
|
|
70 |
version_SVN
|
|
71 |
^ '$Id$'
|
|
72 |
! !
|