author | Jan Vrany <jan.vrany@labware.com> |
Fri, 08 Sep 2023 12:40:22 +0100 | |
changeset 317 | 7f63737e0374 |
parent 311 | aaa582ae8897 |
permissions | -rw-r--r-- |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
1 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
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:
90
diff
changeset
|
3 |
Copyright (C) 2015-now Jan Vrany |
272
cdd1c9ad00de
Change class categories to facilitate Pharo port
Jan Vrany <jan.vrany@labware.com>
parents:
259
diff
changeset
|
4 |
Copyright (C) 2021-2023 LabWare |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
5 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
6 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
7 |
of this software and associated documentation files (the 'Software'), to deal |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
8 |
in the Software without restriction, including without limitation the rights |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
9 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
10 |
copies of the Software, and to permit persons to whom the Software is |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
11 |
furnished to do so, subject to the following conditions: |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
12 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
13 |
The above copyright notice and this permission notice shall be included in all |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
14 |
copies or substantial portions of the Software. |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
15 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
16 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
17 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
18 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
19 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
20 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
21 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
22 |
SOFTWARE. |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
23 |
" |
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
"{ Package: 'jv:libgdbs' }" |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
|
78 | 26 |
"{ NameSpace: Smalltalk }" |
27 |
||
36
095c4b0b74d3
Added support for threads.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
35
diff
changeset
|
28 |
GDBDebuggerObject subclass:#GDBBreakpoint |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
29 |
instanceVariableNames:'number type disp enabled addr func file fullname line times |
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
30 |
condition script locations' |
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
classVariableNames:'' |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
poolDictionaries:'' |
272
cdd1c9ad00de
Change class categories to facilitate Pharo port
Jan Vrany <jan.vrany@labware.com>
parents:
259
diff
changeset
|
33 |
category:'GDB' |
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
36 |
!GDBBreakpoint class methodsFor:'documentation'! |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
37 |
|
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
38 |
copyright |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
39 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
40 |
jv:libgdbs - GNU Debugger Interface Library |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
41 |
Copyright (C) 2015-now Jan Vrany |
272
cdd1c9ad00de
Change class categories to facilitate Pharo port
Jan Vrany <jan.vrany@labware.com>
parents:
259
diff
changeset
|
42 |
Copyright (C) 2021-2023 LabWare |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
43 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
44 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
45 |
of this software and associated documentation files (the 'Software'), to deal |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
46 |
in the Software without restriction, including without limitation the rights |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
47 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
48 |
copies of the Software, and to permit persons to whom the Software is |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
49 |
furnished to do so, subject to the following conditions: |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
50 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
51 |
The above copyright notice and this permission notice shall be included in all |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
52 |
copies or substantial portions of the Software. |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
53 |
|
259
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
54 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
55 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
56 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
57 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
58 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
59 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
651864c2aa29
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
231
diff
changeset
|
60 |
SOFTWARE. |
91
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
61 |
" |
472a4841a8b6
License this package under 'GNU Lesser General Public License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
90
diff
changeset
|
62 |
! ! |
79
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
63 |
|
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
!GDBBreakpoint class methodsFor:'accessing - GDB value descriptors'! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
|
45
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
66 |
description |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
67 |
^ (super description) |
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
68 |
define:#number as:String; |
45
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
69 |
define:#type as:String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
70 |
define:#disp as:String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
71 |
define:#enabled as:Boolean; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
72 |
define:#addr as:Integer; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
73 |
define:#func as:String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
74 |
define:#file as:String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
75 |
define:#fullname as:String; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
76 |
define:#line as:Integer; |
deb908479a37
Code refactored to use Magritte to meta-describe GDB objects.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
36
diff
changeset
|
77 |
define:#times as:Integer; |
187
cb419023190f
Fix `GDBBreakpoint` description to support new-style breakpoint record
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
184
diff
changeset
|
78 |
define:#locations as:Array of: self; |
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
79 |
yourself |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
80 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
81 |
"Created: / 06-09-2014 / 01:56:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
187
cb419023190f
Fix `GDBBreakpoint` description to support new-style breakpoint record
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
184
diff
changeset
|
82 |
"Modified: / 25-04-2019 / 14:27:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
83 |
! ! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
84 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
!GDBBreakpoint methodsFor:'accessing'! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
86 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
87 |
addr |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
88 |
^ addr |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
89 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
90 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
91 |
condition |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
92 |
^ condition |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
93 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
94 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
95 |
condition:aString |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
96 |
self assert: debugger notNil. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
97 |
condition ~= aString ifTrue:[ |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
98 |
debugger send: (GDBMI_break_condition arguments: (Array with: number with: aString)) andWait: true. |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
99 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
100 |
|
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
101 |
"Modified: / 17-11-2017 / 20:25:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
231
dcadeaddd0c8
Update (internal) list of breakpoints when creating / modifying / deleting using MI commands
Jan Vrany <jan.vrany@labware.com>
parents:
187
diff
changeset
|
102 |
"Modified: / 22-05-2021 / 16:38:06 / Jan Vrany <jan.vrany@labware.com>" |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
103 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
104 |
|
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
disp |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
^ disp |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
enabled |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
^ enabled |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
113 |
enabled: aBoolean |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
114 |
self assert: debugger notNil. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
115 |
enabled ~~ aBoolean ifTrue:[ |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
116 |
aBoolean ifTrue:[ |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
117 |
debugger send: (GDBMI_break_enable arguments: (Array with: number)) andWait: true. |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
118 |
] ifFalse:[ |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
119 |
debugger send: (GDBMI_break_disable arguments: (Array with: number)) andWait: true. |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
120 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
121 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
122 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
123 |
"Created: / 07-07-2017 / 12:33:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
124 |
"Modified: / 17-11-2017 / 20:24:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
231
dcadeaddd0c8
Update (internal) list of breakpoints when creating / modifying / deleting using MI commands
Jan Vrany <jan.vrany@labware.com>
parents:
187
diff
changeset
|
125 |
"Modified: / 22-05-2021 / 16:16:35 / Jan Vrany <jan.vrany@labware.com>" |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
126 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
127 |
|
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
file |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
^ file |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
130 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
fullname |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
^ fullname |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
func |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
^ func |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
line |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
^ line |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
|
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
144 |
locations |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
145 |
locations isNil ifTrue:[ ^ Array with: self ]. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
146 |
^ locations |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
147 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
148 |
"Modified: / 18-05-2018 / 12:23:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
149 |
! |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
150 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
151 |
locations:aCollection |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
152 |
self assert: aCollection isCollection. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
153 |
self assert: (aCollection allSatisfy:[:e|e isKindOf: GDBBreakpoint]). |
273
1cf90f7888e1
Compatibility: replace `#startsWith:` with `#beginsWith:`
Jan Vrany <jan.vrany@labware.com>
parents:
272
diff
changeset
|
154 |
self assert: (aCollection allSatisfy:[:e|e number beginsWith: number , '.']). |
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
155 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
156 |
locations := aCollection. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
157 |
locations do:[:e|e setDebugger: debugger]. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
158 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
159 |
"Modified: / 18-05-2018 / 15:01:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
273
1cf90f7888e1
Compatibility: replace `#startsWith:` with `#beginsWith:`
Jan Vrany <jan.vrany@labware.com>
parents:
272
diff
changeset
|
160 |
"Modified: / 12-07-2023 / 15:32:55 / Jan Vrany <jan.vrany@labware.com>" |
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
161 |
! |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
162 |
|
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
number |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
^ number |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
167 |
script |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
168 |
^ script |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
169 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
170 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
171 |
script:aString |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
172 |
self assert: debugger notNil. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
173 |
script ~= aString ifTrue:[ |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
174 |
debugger send: (GDBMI_break_commands arguments: (Array with: number) , aString asStringCollection) andWait: true. |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
175 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
176 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
177 |
"Created: / 11-07-2017 / 14:32:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
90
6046abc9ddf4
Replaced Squek computed arrays by more verbose `Array with:...`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
87
diff
changeset
|
178 |
"Modified: / 17-11-2017 / 20:24:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
231
dcadeaddd0c8
Update (internal) list of breakpoints when creating / modifying / deleting using MI commands
Jan Vrany <jan.vrany@labware.com>
parents:
187
diff
changeset
|
179 |
"Modified: / 22-05-2021 / 16:38:18 / Jan Vrany <jan.vrany@labware.com>" |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
180 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
181 |
|
35
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
182 |
times |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
183 |
^ times |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
184 |
! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
185 |
|
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
186 |
type |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
187 |
^ type |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
188 |
! ! |
c17ecf90e446
Initial support for thread groups, threads and breakpoints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
189 |
|
81
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
190 |
!GDBBreakpoint methodsFor:'accessing-properties'! |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
191 |
|
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
192 |
propertyAt: name |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
193 |
name = 'at' ifTrue:[ |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
194 |
^ nil |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
195 |
]. |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
196 |
^super propertyAt: name |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
197 |
|
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
198 |
"Created: / 05-06-2017 / 23:22:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
199 |
"Modified: / 06-06-2017 / 09:18:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
200 |
! |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
201 |
|
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
202 |
propertyAt: name put: value |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
203 |
name = 'at' ifTrue:[ |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
204 |
^ self. |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
205 |
]. |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
206 |
^ super propertyAt: name put: value |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
207 |
|
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
208 |
"Created: / 05-06-2017 / 23:22:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
209 |
"Modified: / 06-06-2017 / 09:19:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
210 |
! ! |
5e07808d349f
Fixed and improvemets in `GDBThreadGroup` API
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
79
diff
changeset
|
211 |
|
311
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
212 |
!GDBBreakpoint methodsFor:'displaying'! |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
213 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
214 |
displayOn: aStream |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
215 |
aStream nextPutAll:(self enabled ifTrue:[ 'e ' ] ifFalse:[ 'd ' ]). |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
216 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
217 |
(self type = 'watchpoint' or:[ self type = 'hw watchpoint' ]) ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
218 |
| location | |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
219 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
220 |
aStream nextPutAll: 'W '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
221 |
self number printOn:aStream. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
222 |
aStream nextPutAll:', '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
223 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
224 |
aStream nextPutAll:'at '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
225 |
location := self propertyAt: 'what'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
226 |
aStream nextPutAll: location ? '??'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
227 |
] ifFalse: [ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
228 |
| fn | |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
229 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
230 |
aStream nextPutAll: 'B '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
231 |
aStream nextPutAll: self number. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
232 |
aStream nextPutAll:', '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
233 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
234 |
fn := self func. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
235 |
fn isNil and:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
236 |
fn := self propertyAt:'original-location' |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
237 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
238 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
239 |
fn notNil ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
240 |
aStream nextPutAll:'in '. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
241 |
aStream nextPutAll: fn. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
242 |
"I (JV) prefer to have () after plain C function names. GDB seems to |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
243 |
to add them for C functions but does no add them for C++ functions / methods |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
244 |
(well, perhaps it's the compiler who does that, does not matter). |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
245 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
246 |
So, if there's no $(, assume it's a C++ function and add () at the end. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
247 |
We'll see how this works..." |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
248 |
(fn includes: $() ifFalse:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
249 |
aStream nextPutAll:'()'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
250 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
251 |
aStream nextPutAll:', ' |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
252 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
253 |
self hasMultipleLocations ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
254 |
self locations size printOn: aStream. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
255 |
aStream nextPutAll: ' locations'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
256 |
] ifFalse:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
257 |
self file notNil ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
258 |
self file printOn:aStream. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
259 |
aStream nextPut:$:. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
260 |
self line printOn:aStream. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
261 |
] ifFalse:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
262 |
| address | |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
263 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
264 |
address := self addr. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
265 |
address isNil ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
266 |
aStream nextPutAll:'at ??'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
267 |
] ifFalse:[address isInteger ifTrue:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
268 |
aStream nextPutAll:'at 0x'. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
269 |
address printOn: aStream paddedWith: $0 to: 16 base: 16. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
270 |
] ifFalse:[ |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
271 |
address printOn: aStream |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
272 |
]]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
273 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
274 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
275 |
]. |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
276 |
|
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
277 |
"Created: / 29-08-2023 / 11:58:44 / Jan Vrany <jan.vrany@labware.com>" |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
278 |
"Modified (format): / 30-08-2023 / 11:46:31 / Jan Vrany <jan.vrany@labware.com>" |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
279 |
! ! |
aaa582ae8897
Add a bunch of `#displayOn:` methods
Jan Vrany <jan.vrany@labware.com>
parents:
273
diff
changeset
|
280 |
|
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
281 |
!GDBBreakpoint methodsFor:'initialization & release'! |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
282 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
283 |
setDebugger: aGDBDebugger |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
284 |
super setDebugger: aGDBDebugger. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
285 |
locations notEmptyOrNil ifTrue:[ |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
286 |
locations do:[:e | e setDebugger: debugger ] |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
287 |
]. |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
288 |
|
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
289 |
"Created: / 18-05-2018 / 15:00:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
290 |
! ! |
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
291 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
292 |
!GDBBreakpoint methodsFor:'inspecting'! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
293 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
294 |
inspector2TabCondition |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
295 |
<inspector2Tab> |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
296 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
297 |
| editor | |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
298 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
299 |
editor := (HVScrollableView for:EditTextView). |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
300 |
editor model: ((AspectAdaptor forAspect: #condition) subject: self). |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
301 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
302 |
^ Tools::Inspector2Tab new |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
303 |
priority: 41; |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
304 |
label:'Condition'; |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
305 |
view: editor |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
306 |
yourself. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
307 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
308 |
"Created: / 11-07-2017 / 14:36:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
309 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
310 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
311 |
inspector2TabScript |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
312 |
<inspector2Tab> |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
313 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
314 |
| editor | |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
315 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
316 |
editor := (HVScrollableView for:EditTextView). |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
317 |
editor model: ((AspectAdaptor forAspect: #script) subject: self). |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
318 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
319 |
^ Tools::Inspector2Tab new |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
320 |
priority: 40; |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
321 |
label:'Script'; |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
322 |
view: editor |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
323 |
yourself. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
324 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
325 |
"Created: / 11-07-2017 / 14:41:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
326 |
! ! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
327 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
328 |
!GDBBreakpoint methodsFor:'printing & storing'! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
329 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
330 |
printOn:aStream |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
331 |
"append a printed representation of the receiver to the argument, aStream" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
332 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
333 |
super printOn:aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
334 |
aStream nextPut:$(. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
335 |
number printOn:aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
336 |
aStream nextPutAll:', '. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
337 |
aStream nextPutAll:(enabled ifTrue:[ 'enabled, ' ] ifFalse:[ 'disabled, ' ]). |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
338 |
func notNil ifTrue:[ |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
339 |
aStream nextPutAll:'in '. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
340 |
func printOn:aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
341 |
aStream nextPutAll:'(), '. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
342 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
343 |
file notNil ifTrue:[ |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
344 |
file printOn:aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
345 |
aStream nextPut:$:. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
346 |
line printOn:aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
347 |
] ifFalse:[ |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
348 |
aStream nextPutAll:'at '. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
349 |
addr printOn: aStream. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
350 |
]. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
351 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
352 |
"Modified: / 10-07-2017 / 12:55:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
353 |
! ! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
354 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
355 |
!GDBBreakpoint methodsFor:'private'! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
356 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
357 |
_cond: aString |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
358 |
condition := aString |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
359 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
360 |
"Created: / 11-07-2017 / 14:11:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
361 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
362 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
363 |
_enabled: aBoolean |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
364 |
enabled := aBoolean |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
365 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
366 |
"Created: / 07-07-2017 / 12:46:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
367 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
368 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
369 |
_script: anArray |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
370 |
script := anArray asStringWith: Character cr. |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
371 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
372 |
"Created: / 11-07-2017 / 14:11:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
373 |
! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
374 |
|
177
e7bd05df3d6b
Introduce new internal API `GDBDebuggerObject >> updateFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
120
diff
changeset
|
375 |
updateFromIgnoredInstvarNames |
e7bd05df3d6b
Introduce new internal API `GDBDebuggerObject >> updateFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
120
diff
changeset
|
376 |
^ super updateFromIgnoredInstvarNames , #(locations) |
120
73877848ea7f
Added support for breakpoints with multiple locations
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
106
diff
changeset
|
377 |
|
177
e7bd05df3d6b
Introduce new internal API `GDBDebuggerObject >> updateFrom:`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
120
diff
changeset
|
378 |
"Created: / 25-02-2019 / 16:25:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
379 |
! ! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
380 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
381 |
!GDBBreakpoint methodsFor:'testing'! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
382 |
|
184
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
383 |
hasMultipleLocations |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
384 |
"Return `true` if the breakpoint has multiple locations, |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
385 |
`false` otherwise." |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
386 |
|
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
387 |
^ locations notNil |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
388 |
|
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
389 |
"Created: / 26-03-2019 / 10:42:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
390 |
! |
d70c70c3e495
API: add `GDBBreakpoint >> hasMultipleLocations`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
391 |
|
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
392 |
isEnabled |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
393 |
^ enabled |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
394 |
|
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
395 |
"Created: / 07-07-2017 / 12:31:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
106
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
396 |
! |
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
397 |
|
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
398 |
isValid |
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
399 |
^ debugger isConnected |
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
400 |
|
12c96f17fc53
Variable objects: invalidate variable object when thread on inferior terminates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
95
diff
changeset
|
401 |
"Created: / 04-02-2018 / 21:29:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
87
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
402 |
! ! |
50e80d25ea6f
Added initial support for breakppints.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
403 |
|
79
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
404 |
!GDBBreakpoint class methodsFor:'documentation'! |
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
405 |
|
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
406 |
version_HG |
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
407 |
|
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
408 |
^ '$Changeset: <not expanded> $' |
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
409 |
! ! |
303c4edc75ad
`GDBProcess` refatored to have console interpreter on STDIN/STDOUT
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
410 |