author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 23 Jun 2019 12:29:15 +0100 | |
changeset 196 | 80ab1ba7990a |
parent 91 | 472a4841a8b6 |
child 259 | 651864c2aa29 |
permissions | -rw-r--r-- |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
1 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
2 |
jv:libgdbs - GNU Debugger Interface Library |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
3 |
Copyright (C) 2015-now Jan Vrany |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
4 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
5 |
This library is free software; you can redistribute it and/or |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
6 |
modify it under the terms of the GNU Lesser General Public |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
7 |
License as published by the Free Software Foundation; either |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
8 |
version 2.1 of the License. |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
9 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
10 |
This library is distributed in the hope that it will be useful, |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
13 |
Lesser General Public License for more details. |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
14 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
15 |
You should have received a copy of the GNU Lesser General Public |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
16 |
License along with this library; if not, write to the Free Software |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
17 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
18 |
" |
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
"{ Package: 'jv:libgdbs' }" |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
|
78 | 21 |
"{ NameSpace: Smalltalk }" |
22 |
||
6 | 23 |
GDBEvent subclass:#GDBAsyncEvent |
18
6bf3d5c400d1
Make GDBEvent and GDBCommandResult also described by value descriptor...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
24 |
instanceVariableNames:'type' |
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
25 |
classVariableNames:'EventTypeToEventClassMap' |
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
poolDictionaries:'' |
6 | 27 |
category:'GDB-Core-Events' |
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
! |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
|
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
30 |
!GDBAsyncEvent class methodsFor:'documentation'! |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
31 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
32 |
copyright |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
33 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
34 |
jv:libgdbs - GNU Debugger Interface Library |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
35 |
Copyright (C) 2015-now Jan Vrany |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
36 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
37 |
This library is free software; you can redistribute it and/or |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
38 |
modify it under the terms of the GNU Lesser General Public |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
39 |
License as published by the Free Software Foundation; either |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
40 |
version 2.1 of the License. |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
41 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
42 |
This library is distributed in the hope that it will be useful, |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
43 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
44 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
45 |
Lesser General Public License for more details. |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
46 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
47 |
You should have received a copy of the GNU Lesser General Public |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
48 |
License along with this library; if not, write to the Free Software |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
49 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
50 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
51 |
! ! |
6 | 52 |
|
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
53 |
!GDBAsyncEvent class methodsFor:'initialization'! |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
54 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
55 |
initialize |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
56 |
"Invoked at system start or when the class is dynamically loaded." |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
57 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
58 |
EventTypeToEventClassMap := Dictionary new. |
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
59 |
Smalltalk isStandAloneApp ifTrue:[ |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
60 |
self allSubclassesDo:[:cls| |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
61 |
| type | |
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
62 |
|
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
63 |
type := cls basicNew type. |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
64 |
type notNil ifTrue:[ |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
65 |
EventTypeToEventClassMap at: type put: cls. |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
66 |
]. |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
67 |
] |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
68 |
]. |
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
69 |
|
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
70 |
"Modified: / 08-09-2014 / 23:49:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
71 |
! ! |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
72 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
73 |
!GDBAsyncEvent class methodsFor:'accessing'! |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
74 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
75 |
eventClassForType: type |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
76 |
| eventClassName eventClass | |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
77 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
78 |
eventClass := EventTypeToEventClassMap at: type ifAbsent:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
79 |
eventClassName := (String streamContents:[ :out | |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
80 |
| in | |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
81 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
82 |
out nextPutAll: 'GDB'. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
83 |
in := type readStream. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
84 |
out nextPut: in next asUppercase. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
85 |
[ in atEnd ] whileFalse:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
86 |
| c | |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
87 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
88 |
c := in next. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
89 |
c == $- ifTrue:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
90 |
c := in next asUppercase. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
91 |
]. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
92 |
out nextPut: c. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
93 |
]. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
94 |
out nextPutAll: 'Event'. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
95 |
]) asSymbol. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
96 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
97 |
eventClass := Smalltalk at: eventClassName asSymbol. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
98 |
eventClass isNil ifTrue:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
99 |
Smalltalk isStandAloneApp ifFalse:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
100 |
eventClass := self subclass:eventClassName |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
101 |
instanceVariableNames:'' |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
102 |
classVariableNames:'' |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
103 |
poolDictionaries:'' |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
104 |
category:'GDB-Core-Events'. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
105 |
eventClass compile: (String streamContents: [ :s|s nextPutAll:'type'; cr; tab; nextPutAll:'^ '; nextPutAll: type storeString ]) classified: 'accessing'. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
106 |
] ifTrue:[ |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
107 |
eventClass := self. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
108 |
] |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
109 |
]. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
110 |
eventClass |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
111 |
]. |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
112 |
^ eventClass |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
113 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
114 |
"Created: / 12-06-2014 / 17:03:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
115 |
"Modified: / 13-06-2014 / 07:12:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
116 |
! ! |
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
117 |
|
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
118 |
!GDBAsyncEvent class methodsFor:'accessing - GDB value descriptors'! |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
119 |
|
45
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
120 |
description |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
121 |
^ (super description) |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
122 |
|
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
123 |
"/define: #prop as: String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
124 |
yourself |
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
125 |
|
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
126 |
"Created: / 08-09-2014 / 21:59:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
45
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
38
diff
changeset
|
127 |
"Modified: / 23-09-2014 / 23:18:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
38
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
128 |
! ! |
c9eaa506824b
More work on GDBThreadStatus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
18
diff
changeset
|
129 |
|
6 | 130 |
!GDBAsyncEvent class methodsFor:'queries'! |
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
|
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
isAbstract |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
"Return if this class is an abstract class. |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
True is returned here for myself only; false for subclasses. |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
Abstract subclasses must redefine again." |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
|
6 | 137 |
^ self == GDBAsyncEvent. |
138 |
||
139 |
"Modified: / 02-06-2014 / 22:20:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
! ! |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
|
6 | 142 |
!GDBAsyncEvent methodsFor:'accessing'! |
4
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
|
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
type |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
^ type |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
! |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
|
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
type:aString |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
type := aString. |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
! ! |
62366cc0fd95
Added some events + fixed parser to parse a simple session.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
|
12
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
152 |
!GDBAsyncEvent methodsFor:'displaying'! |
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
153 |
|
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
154 |
displayString |
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
155 |
^ type |
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
156 |
|
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
157 |
"Created: / 12-06-2014 / 01:15:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
158 |
! ! |
568a2971c977
Generated classes for MI commands.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
159 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
160 |
!GDBAsyncEvent methodsFor:'testing'! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
161 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
162 |
isAsyncEvent |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
163 |
^ true |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
164 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
165 |
"Created: / 11-07-2017 / 11:03:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
166 |
! ! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
167 |
|
6 | 168 |
!GDBAsyncEvent class methodsFor:'documentation'! |
169 |
||
170 |
version_HG |
|
171 |
||
172 |
^ '$Changeset: <not expanded> $' |
|
173 |
! ! |
|
174 |
||
13
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
175 |
|
45ec9353003f
Added classes for each async event type.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
176 |
GDBAsyncEvent initialize! |