author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 20 Jun 2019 16:11:12 +0100 | |
changeset 174 | 3f6f51330641 |
parent 164 | 364ebdd1d42c |
child 183 | 91a467093d63 |
permissions | -rw-r--r-- |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
1 |
" |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
2 |
jv:vdb - Visual / VM Debugger |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
3 |
Copyright (C) 2015-now Jan Vrany |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
4 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
5 |
This software is licensed under 'Creative Commons Attribution-NonCommercial 4.0 International License' |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
6 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
7 |
You may find a full license text in LICENSE.txt or at http://creativecommons.org/licenses/by-nc/4.0/ |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
8 |
" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
"{ Package: 'jv:vdb' }" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
11 |
"{ NameSpace: Smalltalk }" |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
12 |
|
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
13 |
VDBAbstractTreeApplication subclass:#VDBStackApplication |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
14 |
instanceVariableNames:'selectedThreadGroupHolder selectedThreadHolder |
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
15 |
selectedFrameHolder' |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
classVariableNames:'' |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
poolDictionaries:'' |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15
diff
changeset
|
18 |
category:'VDB-UI-Others' |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
|
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
21 |
!VDBStackApplication class methodsFor:'documentation'! |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
22 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
23 |
copyright |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
24 |
" |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
25 |
jv:vdb - Visual / VM Debugger |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
26 |
Copyright (C) 2015-now Jan Vrany |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
27 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
28 |
This software is licensed under 'Creative Commons Attribution-NonCommercial 4.0 International License' |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
29 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
30 |
You may find a full license text in LICENSE.txt or at http://creativecommons.org/licenses/by-nc/4.0/ |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
31 |
" |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
46
diff
changeset
|
32 |
! ! |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
33 |
|
46
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
34 |
!VDBStackApplication class methodsFor:'accessing'! |
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
35 |
|
115
0dd989ce3ae7
Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
113
diff
changeset
|
36 |
defaultWindowTitle |
0dd989ce3ae7
Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
113
diff
changeset
|
37 |
^ self resources string: 'Callstack' |
46
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
38 |
|
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
39 |
"Created: / 11-07-2017 / 16:37:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
115
0dd989ce3ae7
Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
113
diff
changeset
|
40 |
"Modified: / 03-10-2018 / 15:39:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
46
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
41 |
! ! |
6b857f3cec8c
Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
42
diff
changeset
|
42 |
|
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
!VDBStackApplication class methodsFor:'plugIn spec'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
aspectSelectors |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
"This resource specification was automatically generated |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
by the UIPainter of ST/X." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
"Do not manually edit this. If it is corrupted, |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
50 |
the UIPainter may not be able to read the specification." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
"Return a description of exported aspects; |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
53 |
these can be connected to aspects of an embedding application |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
54 |
(if this app is embedded in a subCanvas)." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
55 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
56 |
^ #( |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
#debuggerHolder |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
58 |
#selectedFrameHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
59 |
#selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
60 |
#selectedThreadHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
61 |
). |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
62 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
!VDBStackApplication methodsFor:'aspects'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
|
78
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
67 |
foregroundColorFor: aVDBAbstractPresenter |
80
7a9cf1d6be50
UX: improvements in disasembly view (`VDBInstructionListApplication`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
68 |
^ (aVDBAbstractPresenter isFramePresenter and:[ aVDBAbstractPresenter frame thread isStopped not]) |
78
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
69 |
ifTrue:[ Color gray ] |
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
70 |
ifFalse:[ nil ] |
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
71 |
|
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
72 |
"Created: / 26-06-2018 / 13:06:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
80
7a9cf1d6be50
UX: improvements in disasembly view (`VDBInstructionListApplication`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
78
diff
changeset
|
73 |
"Modified: / 04-07-2018 / 13:13:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
78
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
74 |
! |
5b61031de9a7
API: generalize support for application-defined background and foreground colors for presenters
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
72
diff
changeset
|
75 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
76 |
selectedFrameHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
77 |
"return/create the 'selectionHolder' value holder (automatically generated)" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
78 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
79 |
selectedFrameHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
80 |
selectedFrameHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
81 |
selectedFrameHolder addDependent:self. |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
82 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
83 |
^ selectedFrameHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
84 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
85 |
"Created: / 21-09-2014 / 23:51:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
86 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
87 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
88 |
selectedFrameHolder:aValueModel |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
89 |
"set the 'selectionHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
90 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
91 |
|oldValue newValue| |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
92 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
93 |
selectedFrameHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
94 |
oldValue := selectedFrameHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
95 |
selectedFrameHolder removeDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
96 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
97 |
selectedFrameHolder := aValueModel. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
98 |
selectedFrameHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
99 |
selectedFrameHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
100 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
101 |
newValue := selectedFrameHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
102 |
oldValue ~~ newValue ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
103 |
self update:#value with:newValue from:selectedFrameHolder. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
104 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
105 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
106 |
"Created: / 21-09-2014 / 23:50:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
107 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
108 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
109 |
selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
110 |
"return/create the 'selectedThreadGroupHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
111 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
112 |
selectedThreadGroupHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
113 |
selectedThreadGroupHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
114 |
selectedThreadGroupHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
115 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
116 |
^ selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
117 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
118 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
119 |
selectedThreadGroupHolder:something |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
120 |
"set the 'selectedThreadGroupHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
121 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
122 |
|oldValue newValue| |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
123 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
124 |
selectedThreadGroupHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
125 |
oldValue := selectedThreadGroupHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
126 |
selectedThreadGroupHolder removeDependent:self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
127 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
128 |
selectedThreadGroupHolder := something. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
129 |
selectedThreadGroupHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
130 |
selectedThreadGroupHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
131 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
132 |
newValue := selectedThreadGroupHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
133 |
oldValue ~~ newValue ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
134 |
self update:#value with:newValue from:selectedThreadGroupHolder. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
135 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
136 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
137 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
138 |
selectedThreadHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
139 |
"return/create the 'selectedThreadHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
140 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
141 |
selectedThreadHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
142 |
selectedThreadHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
143 |
selectedThreadHolder addDependent:self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
144 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
145 |
^ selectedThreadHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
146 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
147 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
148 |
selectedThreadHolder:something |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
149 |
"set the 'selectedThreadHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
150 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
151 |
|oldValue newValue| |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
152 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
153 |
selectedThreadHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
154 |
oldValue := selectedThreadHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
155 |
selectedThreadHolder removeDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
156 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
157 |
selectedThreadHolder := something. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
158 |
selectedThreadHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
159 |
selectedThreadHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
160 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
161 |
newValue := selectedThreadHolder value. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
162 |
oldValue ~~ newValue ifTrue:[ |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
163 |
self update:#value with:newValue from:selectedThreadHolder. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
164 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
165 |
! ! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
166 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
167 |
!VDBStackApplication methodsFor:'change & update'! |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
168 |
|
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
169 |
enqueueUpdateAfterThreadStopped:aGDBThread |
154
26937faa5a97
Use standard `#enqueueMessage:` mechanism to enqueue delayed updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
170 |
self enqueueMessage:#delayedUpdateAfterThreadStopped: with:aGDBThread |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
171 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
172 |
"Created: / 22-09-2014 / 23:15:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
173 |
"Modified: / 17-01-2018 / 06:52:50 / jv" |
154
26937faa5a97
Use standard `#enqueueMessage:` mechanism to enqueue delayed updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
151
diff
changeset
|
174 |
"Modified: / 18-02-2019 / 10:24:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
175 |
! |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
176 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
177 |
update:aspect with:param from:sender |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
178 |
"Invoked when an object that I depend upon sends a change notification." |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
179 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
180 |
"stub code automatically generated - please change as required" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
181 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
182 |
sender == selectedFrameHolder ifTrue:[ |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
183 |
self updateInternalSelection. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
184 |
^ self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
185 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
186 |
super update:aspect with:param from:sender |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
187 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
188 |
"Modified: / 27-02-2015 / 15:44:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
189 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
190 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
191 |
updateInternalSelection |
87
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
192 |
| frame presenter | |
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
193 |
|
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
194 |
frame := self selectedFrameHolder value. |
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
195 |
presenter := self internalListHolder value detect:[:e | e subject == frame ] ifNone:[ nil ]. |
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
196 |
self internalSelectionHolder |
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
197 |
value: presenter |
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
198 |
withoutNotifying: self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
199 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
200 |
"Created: / 20-09-2014 / 23:05:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
87
a7db77284c7f
UX: always show selected (contextual) frame in stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
201 |
"Modified (format): / 30-07-2018 / 07:40:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
202 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
203 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
204 |
updateSelection |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
205 |
| internalSelection frame thread group | |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
206 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
207 |
internalSelection := self internalSelectionHolder value. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
208 |
internalSelection notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
209 |
internalSelection isFramePresenter ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
210 |
frame := internalSelection frame. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
211 |
thread := frame thread. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
212 |
group := thread group. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
213 |
] ifFalse:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
214 |
internalSelection isThreadPresenter ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
215 |
thread := internalSelection thread. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
216 |
group := thread group. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
217 |
] ifFalse:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
218 |
group := internalSelection threadGroup. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
219 |
] |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
220 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
221 |
]. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
222 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
223 |
self selectedThreadGroupHolder value: group withoutNotifying: self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
224 |
self selectedThreadHolder value: thread withoutNotifying: self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
225 |
self selectedFrameHolder value: frame withoutNotifying: self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
226 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
227 |
"Created: / 20-09-2014 / 23:10:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
228 |
"Modified: / 22-09-2014 / 00:17:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
229 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
230 |
|
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
231 |
!VDBStackApplication methodsFor:'change & update-delayed'! |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
232 |
|
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
233 |
delayedUpdateAfterThreadStopped:thread |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
234 |
"/ It may happen that by te time we get here the thread is running |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
235 |
"/ again, so care for this. |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
236 |
|
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
237 |
contentsValid ifFalse:[ |
164
364ebdd1d42c
Generalize `VDBInstructionListView`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
154
diff
changeset
|
238 |
self enqueueDelayedUpdateContents. |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
239 |
^ self |
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
240 |
]. |
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
241 |
|
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
242 |
thread isStopped ifTrue:[ |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
243 |
|threadP framePs frameP| |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
244 |
|
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
245 |
threadP := self internalListHolder value root |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
246 |
recursiveDetect:[:e | e isThreadPresenter and:[ e thread == thread ] ]. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
247 |
framePs := threadP children. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
248 |
framePs notEmpty ifTrue:[ |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
249 |
frameP := threadP children first. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
250 |
frameP parent expand. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
251 |
self internalSelectionHolder value:frameP |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
252 |
]. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
253 |
]. |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
254 |
|
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
255 |
"Created: / 22-09-2014 / 23:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
256 |
"Modified: / 16-01-2018 / 20:22:04 / jv" |
164
364ebdd1d42c
Generalize `VDBInstructionListView`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
154
diff
changeset
|
257 |
"Modified: / 08-06-2019 / 07:35:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
258 |
! |
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
259 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
260 |
delayedUpdateInternalList |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
261 |
| root list | |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
262 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
263 |
debugger isNil ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
264 |
self internalListHolder root children:#(). |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
265 |
^ self. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
266 |
]. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
267 |
root := self internalListHolder root. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
268 |
list := debugger inferiors |
38
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
269 |
select:[:inferior | true "inferior isRunning or:[ inferior isStopped ]" ] |
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
270 |
thenCollect:[:inferior | |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
271 |
(VDBThreadGroupPresenter new) |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
272 |
setThreadGroup:inferior; |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
273 |
parent:root |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
274 |
]. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
275 |
root children:list. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
276 |
root expand. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
277 |
root children size == 1 ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
278 |
root children anElement expand. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
279 |
root children anElement children size == 1 ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
280 |
root children anElement children anElement expand. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
281 |
] |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
282 |
]. |
72
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
283 |
self delayedInvalidateInternalList |
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
284 |
|
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
285 |
"Created: / 20-09-2014 / 23:05:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
72
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
286 |
"Modified: / 09-04-2018 / 19:52:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
287 |
! |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
288 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
289 |
delayedUpdateSelection |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
290 |
| internalSelection frame thread group | |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
291 |
|
37
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
292 |
internalSelection := self internalSelectionHolder value. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
293 |
internalSelection notNil ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
294 |
internalSelection isFramePresenter ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
295 |
frame := internalSelection frame. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
296 |
thread := frame thread. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
297 |
group := thread group. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
298 |
] ifFalse:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
299 |
internalSelection isThreadPresenter ifTrue:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
300 |
thread := internalSelection thread. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
301 |
group := thread group. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
302 |
] ifFalse:[ |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
303 |
group := internalSelection threadGroup. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
304 |
] |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
305 |
]. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
306 |
]. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
307 |
|
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
308 |
self selectedThreadGroupHolder value: group withoutNotifying: self. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
309 |
self selectedThreadHolder value: thread withoutNotifying: self. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
310 |
self selectedFrameHolder value: frame withoutNotifying: self. |
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
311 |
|
f417fe8685c5
Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
34
diff
changeset
|
312 |
"Created: / 27-02-2015 / 15:33:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
313 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
314 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
315 |
!VDBStackApplication methodsFor:'event handling'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
316 |
|
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
317 |
onRunningEvent: event |
72
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
318 |
self selectedFrameHolder value notNil ifTrue:[ |
110 | 319 |
self internalSelectionHolder value: nil withoutNotifying: self. |
72
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
320 |
]. |
113
1a40f33af921
UI: Show disassembly along with source code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
110
diff
changeset
|
321 |
self enqueueDelayedInvalidateInternalList |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
322 |
|
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
323 |
"Created: / 30-09-2014 / 00:02:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
324 |
"Modified: / 17-01-2018 / 06:59:11 / jv" |
113
1a40f33af921
UI: Show disassembly along with source code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
110
diff
changeset
|
325 |
"Modified: / 01-10-2018 / 12:59:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
326 |
! |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
327 |
|
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
328 |
onStoppedEvent: event |
53
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
329 |
| stoppedThread | |
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
330 |
|
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
331 |
self enqueueDelayedUpdateContents. |
53
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
332 |
stoppedThread := event stoppedThread. |
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
333 |
stoppedThread notNil ifTrue:[ |
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
334 |
self enqueueUpdateAfterThreadStopped:event stoppedThread. |
53
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
335 |
]. |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
336 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
337 |
"Created: / 17-09-2014 / 23:04:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
53
738e2f6626bf
Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
338 |
"Modified: / 15-01-2018 / 11:51:51 / jv" |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
339 |
"Modified: / 14-02-2019 / 16:31:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
340 |
! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
341 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
342 |
onThreadGroupExitedEvent: event |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
343 |
self enqueueDelayedUpdateContents. |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
344 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
345 |
"Created: / 18-09-2014 / 23:30:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
346 |
"Modified: / 14-02-2019 / 16:31:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
38
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
347 |
! |
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
348 |
|
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
349 |
onThreadGroupStartedEvent: event |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
350 |
self enqueueDelayedUpdateContents. |
38
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
351 |
|
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
352 |
"Created: / 02-03-2015 / 06:42:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
151
bc7626f46210
Performance: do not update contents of windows when not needed
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
115
diff
changeset
|
353 |
"Modified: / 14-02-2019 / 16:31:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
354 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
355 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
356 |
!VDBStackApplication methodsFor:'initialization & release'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
357 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
358 |
subscribe |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
359 |
"Register for debugger events. To be overrided by subclasses" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
360 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
361 |
debugger announcer |
38
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
362 |
when: GDBRunningEvent send: #onRunningEvent: to: self; |
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
363 |
when: GDBStoppedEvent send: #onStoppedEvent: to: self; |
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
364 |
when: GDBThreadGroupStartedEvent send: #onThreadGroupStartedEvent: to: self; |
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
365 |
when: GDBThreadGroupExitedEvent send: #onThreadGroupExitedEvent: to: self |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
366 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
367 |
"Created: / 07-06-2014 / 14:33:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
38
9b861cb882c8
Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
37
diff
changeset
|
368 |
"Modified: / 02-03-2015 / 06:42:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
55
fd2637e6d153
UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
369 |
"Modified: / 17-01-2018 / 06:56:46 / jv" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
370 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
371 |
|
72
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
372 |
!VDBStackApplication methodsFor:'queries'! |
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
373 |
|
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
374 |
canSelect: anItem |
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
375 |
^ anItem isFramePresenter not or:[ anItem frame thread isStopped ] |
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
376 |
|
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
377 |
"Created: / 09-04-2018 / 20:52:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
378 |
! ! |
4e8268dabaf7
UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
55
diff
changeset
|
379 |
|
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
380 |
!VDBStackApplication class methodsFor:'documentation'! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
381 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
382 |
version_HG |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
383 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
384 |
^ '$Changeset: <not expanded> $' |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
385 |
! ! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
386 |