VDBStackApplication.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 26 Jun 2018 13:19:02 +0100
changeset 80 7a9cf1d6be50
parent 78 5b61031de9a7
child 87 a7db77284c7f
permissions -rw-r--r--
UX: improvements in disasembly view (`VDBInstructionListApplication`) Namely: * when a branch instruction is selected, highlight target address, i.e, an address of next instruction if branch is taken. * highlight all instruction in basic block of currently selected instruction. This is not as cool as in Hexray IDA Pro but better than nothing. We'll get there, eventually.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
6b857f3cec8c Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 42
diff changeset
    36
windowTitle
6b857f3cec8c Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 42
diff changeset
    37
    ^ 'Backtrace'
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>"
6b857f3cec8c Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 42
diff changeset
    40
! !
6b857f3cec8c Initial support for breakpoints
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 42
diff changeset
    41
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
    42
!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
    43
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
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
    45
    "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
    46
     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
    47
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
    "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
    49
     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
    50
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
    "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
    52
     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
    53
     (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
    54
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
        #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
    57
        #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
    58
        #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
    59
        #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
    60
      ).
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
!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
    65
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
    66
foregroundColorFor: aVDBAbstractPresenter
80
7a9cf1d6be50 UX: improvements in disasembly view (`VDBInstructionListApplication`)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 78
diff changeset
    67
    ^ (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
    68
        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
    69
        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
    70
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
    "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
    72
    "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
    73
!
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
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
    75
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
    76
    "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
    77
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
    78
    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
    79
        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
    80
        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
    81
    ].
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
    82
    ^ 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
    83
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
    "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
    85
!
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
    86
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
    87
selectedFrameHolder:aValueModel
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
    88
    "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
    89
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
    90
    |oldValue newValue|
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
    91
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
    92
    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
    93
        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
    94
        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
    95
    ].
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
    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
    97
    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
    98
        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
    99
    ].
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
    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
   101
    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
   102
        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
   103
    ].
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
    "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
   106
!
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
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
   109
    "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
   110
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
    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
   112
        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
   113
        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
   114
    ].
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
    ^ 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
   116
!
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
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
   119
    "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
   120
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
    |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
   122
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
    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
   124
        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
   125
        selectedThreadGroupHolder removeDependent:self.
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   126
    ].
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
   127
    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
   128
    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
   129
        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
   130
    ].
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
    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
   132
    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
   133
        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
   134
    ].
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
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
   138
    "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
   139
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
    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
   141
        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
   142
        selectedThreadHolder addDependent:self.
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   143
    ].
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
   144
    ^ 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
   145
!
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
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
   148
    "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
   149
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
    |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
   151
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
    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
   153
        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
   154
        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
   155
    ].
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
    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
   157
    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
   158
        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
   159
    ].
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
    newValue := selectedThreadHolder value.
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   161
    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
   162
        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
   163
    ].
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
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   166
!VDBStackApplication methodsFor:'change & update'!
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   167
55
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   168
enqueueUpdateAfterThreadStopped:aGDBThread 
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   169
    self enqueueDelayedUpdate:#delayedUpdateAfterThreadStopped:
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   170
        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"
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   174
!
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
   175
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   176
update:aspect with:param from:sender
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   177
    "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
   178
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   179
    "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
   180
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
   181
    sender == selectedFrameHolder ifTrue:[
17
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   182
         self updateInternalSelection.
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   183
         ^ self.
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   184
    ].
c5ee4ea44165 Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 16
diff changeset
   185
    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
   186
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   187
    "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
   188
!
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
updateInternalSelection
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
   191
"/    | selection internalSelection |
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
   192
"/
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
   193
"/    selection := self selectionHolder 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
   194
"/    internalSelection := self internalListHolder 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
   195
"/            detect:[:e | e value == selection ] ifNone:[ nil ].
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
   196
"/    self internalSelectionHolder
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
   197
"/        value: internalSelection
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
   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>"
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
   201
    "Modified: / 21-09-2014 / 23:52:41 / 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.
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   236
    
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   237
    thread isStopped ifTrue:[
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   238
        |threadP framePs frameP|
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   239
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   240
        threadP := self internalListHolder value root 
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   241
                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
   242
        framePs := threadP children.
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   243
        framePs notEmpty ifTrue:[
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   244
            frameP := threadP children first.
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   245
            frameP parent expand.
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   246
            self internalSelectionHolder value:frameP
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   247
        ].
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   248
    ].
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   249
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   250
    "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
   251
    "Modified: / 06-07-2017 / 08:56:00 / 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
   252
    "Modified: / 16-01-2018 / 20:22:04 / jv"
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
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   255
delayedUpdateInternalList
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   256
    | 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
   257
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   258
    debugger isNil ifTrue:[
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   259
        self internalListHolder root children:#().
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   260
        ^ self.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   261
    ].
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   262
    root := self internalListHolder root.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   263
    list := debugger inferiors 
38
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   264
            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
   265
            thenCollect:[:inferior | 
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   266
                (VDBThreadGroupPresenter new)
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   267
                    setThreadGroup:inferior;
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   268
                    parent:root
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   269
            ].
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   270
    root children:list.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   271
    root expand.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   272
    root children size == 1 ifTrue:[
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   273
        root children anElement expand.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   274
        root children anElement children size == 1 ifTrue:[
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   275
            root children anElement children anElement expand.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   276
        ]
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   277
    ].
72
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   278
    self delayedInvalidateInternalList
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   279
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   280
    "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
   281
    "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
   282
!
e0f3744cd77d When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 24
diff changeset
   283
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   284
delayedUpdateSelection
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   285
    | 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
   286
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   287
    internalSelection := self internalSelectionHolder value.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   288
    internalSelection notNil ifTrue:[ 
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   289
        internalSelection isFramePresenter ifTrue:[
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   290
            frame := internalSelection frame.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   291
            thread := frame thread.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   292
            group := thread group.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   293
        ] ifFalse:[ 
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   294
            internalSelection isThreadPresenter ifTrue:[ 
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   295
                thread := internalSelection thread.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   296
                group := thread group.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   297
            ] ifFalse:[  
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   298
                group := internalSelection threadGroup.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   299
            ]
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   300
        ].
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   301
    ].
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   302
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   303
    self selectedThreadGroupHolder value: group withoutNotifying: self.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   304
    self selectedThreadHolder value: thread withoutNotifying: self.
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   305
    self selectedFrameHolder value: frame withoutNotifying: self.
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
    "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
   308
! !
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   309
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   310
!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
   311
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
   312
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
   313
    self selectedFrameHolder value notNil ifTrue:[ 
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   314
        self internalSelectionHolder value: nil.
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   315
    ].
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   316
    self delayedInvalidateInternalList
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
00f6de198c7f Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 25
diff changeset
   318
    "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
   319
    "Modified: / 17-01-2018 / 06:59:11 / jv"
72
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   320
    "Modified: / 09-04-2018 / 20:43:42 / 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
   321
!
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
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
   323
onStoppedEvent: event
53
738e2f6626bf Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   324
    | stoppedThread |
738e2f6626bf Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   325
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   326
    self enqueueDelayedUpdateInternalList.
53
738e2f6626bf Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   327
    stoppedThread := event stoppedThread.
738e2f6626bf Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   328
    stoppedThread notNil ifTrue:[
55
fd2637e6d153 UI: refactored updates in thread / stack view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   329
        self enqueueUpdateAfterThreadStopped:event stoppedThread.
53
738e2f6626bf Win32: initial support for Windows.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   330
    ].
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
   331
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   332
    "Created: / 17-09-2014 / 23:04:24 / 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
   333
    "Modified: / 22-09-2014 / 23:26:52 / 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
   334
    "Modified: / 15-01-2018 / 11:51:51 / jv"
15
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   335
!
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   336
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   337
onThreadGroupExitedEvent: event
37
f417fe8685c5 Initial support for variables
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 34
diff changeset
   338
    self enqueueDelayedUpdateInternalList.
15
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   339
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   340
    "Created: / 18-09-2014 / 23:30:32 / 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
   341
    "Modified: / 20-09-2014 / 23:08:22 / 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
   342
!
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   343
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   344
onThreadGroupStartedEvent: event
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   345
    self enqueueDelayedUpdateInternalList.
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   346
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   347
    "Created: / 02-03-2015 / 06:42:35 / 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
   348
! !
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   349
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   350
!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
   351
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   352
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
   353
    "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
   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
    debugger announcer
38
9b861cb882c8 Show al thread groupd, even terminated ones
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 37
diff changeset
   356
        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
   357
        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
   358
        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
   359
        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
   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
    "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
   362
    "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
   363
    "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
   364
! !
d06924d8ca0a Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   365
72
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   366
!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
   367
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   368
canSelect: anItem
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   369
    ^ 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
   370
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   371
    "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
   372
! !
4e8268dabaf7 UI: "disable" frames in frame list while inferior is running
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 55
diff changeset
   373
15
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   374
!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
   375
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   376
version_HG
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   377
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   378
    ^ '$Changeset: <not expanded> $'
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   379
! !
7cddd476fb00 Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 13
diff changeset
   380