VDBUnixDebuggerConsoleApplication.st
author Jan Vrany <jan.vrany@labware.com>
Tue, 26 Jul 2022 15:01:33 +0100
changeset 265 f2470f0dd9cd
parent 264 23960fcb9dac
permissions -rw-r--r--
Do not show address for (pseudo) instructions with no code While such instructions do not appear in GDB-produced disassembly, they may appear in some manually-generated instruction lists. One example of such (pseudo) instruction is label.
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: 40
diff changeset
     1
"
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
     2
jv:libgdbs - GNU Debugger Interface Library
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
     3
Copyright (C) 2015-now Jan Vrany
199
9802f25351a7 Make sure width / height parameters are non-negative when informing GDB about console size
Jan Vrany <jan.vrany@labware.com>
parents: 159
diff changeset
     4
Copyright (C) 2020 LabWare
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
     5
Copyright (C) 2022 LabWare
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
     6
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
     7
Permission is hereby granted, free of charge, to any person obtaining a copy
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
     8
of this software and associated documentation files (the 'Software'), to deal
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
     9
in the Software without restriction, including without limitation the rights
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    10
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    11
copies of the Software, and to permit persons to whom the Software is
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    12
furnished to do so, subject to the following conditions:
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    13
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    14
The above copyright notice and this permission notice shall be included in all
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    15
copies or substantial portions of the Software.
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    16
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    17
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    20
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    22
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    23
SOFTWARE.
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    24
"
0
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
"{ Package: 'jv:vdb' }"
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
35
f6e4876af2e7 Fix in debugger console: properly handle errors
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 32
diff changeset
    27
"{ NameSpace: Smalltalk }"
f6e4876af2e7 Fix in debugger console: properly handle errors
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 32
diff changeset
    28
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    29
VDBAbstractUnixConsoleApplication subclass:#VDBUnixDebuggerConsoleApplication
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    30
	instanceVariableNames:''
0
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
	classVariableNames:''
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    32
	poolDictionaries:''
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    33
	category:'VDB-UI-Console-Unix'
0
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
!
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    36
!VDBUnixDebuggerConsoleApplication class methodsFor:'documentation'!
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    37
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    38
copyright
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    39
"
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    40
jv:libgdbs - GNU Debugger Interface Library
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    41
Copyright (C) 2015-now Jan Vrany
199
9802f25351a7 Make sure width / height parameters are non-negative when informing GDB about console size
Jan Vrany <jan.vrany@labware.com>
parents: 159
diff changeset
    42
Copyright (C) 2020 LabWare
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    43
Copyright (C) 2022 LabWare
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    44
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    45
Permission is hereby granted, free of charge, to any person obtaining a copy
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    46
of this software and associated documentation files (the 'Software'), to deal
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    47
in the Software without restriction, including without limitation the rights
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    48
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    49
copies of the Software, and to permit persons to whom the Software is
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    50
furnished to do so, subject to the following conditions:
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    51
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    52
The above copyright notice and this permission notice shall be included in all
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    53
copies or substantial portions of the Software.
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    54
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    55
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    56
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    57
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    58
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    59
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    60
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 199
diff changeset
    61
SOFTWARE.
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    62
"
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    63
! !
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 40
diff changeset
    64
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    65
!VDBUnixDebuggerConsoleApplication class methodsFor:'accessing'!
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    66
115
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    67
defaultWindowTitle
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    68
    ^ self resources string: 'Debugger Console'
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    69
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    70
    "Created: / 08-01-2018 / 18:59:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
115
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 73
diff changeset
    71
    "Modified: / 03-10-2018 / 15:39:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    72
! !
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    73
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    74
!VDBUnixDebuggerConsoleApplication class methodsFor:'startup-web applications'!
0
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    75
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    76
initialPageSpec
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    77
    "this is only required for web-applications"
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    78
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    79
    ^ self shouldImplement
0
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    80
!
33a652015a1a Initial commit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    82
pageSpecs
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    83
    "this is only required for web-applications"
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    84
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    85
    ^ self shouldImplement
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    86
! !
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    87
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    88
!VDBUnixDebuggerConsoleApplication methodsFor:'accessing'!
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    89
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    90
consoleInput
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    91
    "superclass VDBAbstractConsoleApplication says that I am responsible to implement this method"
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    92
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    93
    ^ debugger consoleInput
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    94
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    95
    "Modified: / 01-06-2017 / 09:45:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    96
!
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    97
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    98
consoleOutput
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
    99
    "superclass VDBAbstractConsoleApplication says that I am responsible to implement this method"
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   100
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
   101
    ^ debugger consoleOutput
4
a7732b0afed6 VDBDebuggerConsoleApplication refactored to use custom TerminalView.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   102
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 39
diff changeset
   103
    "Modified: / 01-06-2017 / 09:46:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8
61e4abb26d78 Fixed fixed synchronization for debugger console view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
   104
! !
61e4abb26d78 Fixed fixed synchronization for debugger console view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
   105
159
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   106
!VDBUnixDebuggerConsoleApplication methodsFor:'change & update'!
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   107
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   108
enqueueDelayedUpdateSize
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   109
    self enqueueMessage:#delayedUpdateSize
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   110
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   111
    "Created: / 20-05-2019 / 11:57:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   112
!
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   113
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   114
update:aspect with:aParameter from:changedObject
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   115
    changedObject == consoleView ifTrue:[ 
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   116
        aspect == #sizeOfView ifTrue:[ 
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   117
            self enqueueDelayedUpdateSize     
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   118
        ].
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   119
    ].
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   120
    ^ super update:aspect with:aParameter from:changedObject
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   121
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   122
    "Created: / 20-05-2019 / 11:54:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   123
! !
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   124
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   125
!VDBUnixDebuggerConsoleApplication methodsFor:'change & update-delayed'!
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   126
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   127
delayedUpdateSize
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   128
    debugger notNil ifTrue:[
199
9802f25351a7 Make sure width / height parameters are non-negative when informing GDB about console size
Jan Vrany <jan.vrany@labware.com>
parents: 159
diff changeset
   129
        debugger setParameter: 'width'  to: (consoleView widthInChars max: 0) printString.
9802f25351a7 Make sure width / height parameters are non-negative when informing GDB about console size
Jan Vrany <jan.vrany@labware.com>
parents: 159
diff changeset
   130
        debugger setParameter: 'height' to: (consoleView heightInChars max: 0) printString.
159
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   131
    ]
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   132
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   133
    "Created: / 20-05-2019 / 13:35:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
199
9802f25351a7 Make sure width / height parameters are non-negative when informing GDB about console size
Jan Vrany <jan.vrany@labware.com>
parents: 159
diff changeset
   134
    "Modified: / 16-11-2020 / 21:46:52 / Jan Vrany <jan.vrany@labware.com>"
159
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   135
! !
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   136
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   137
!VDBUnixDebuggerConsoleApplication methodsFor:'initialization & release'!
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   138
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   139
initializeConsoleView: aTerminalView forDebugger: aGDBDebugger
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   140
    super initializeConsoleView: aTerminalView forDebugger: aGDBDebugger.
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   141
    aGDBDebugger notNil ifTrue:[
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   142
        self enqueueDelayedUpdateSize
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   143
    ].
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   144
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   145
    "Created: / 20-05-2019 / 13:36:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   146
! !
c00d27805420 UI: set console width / height when a console view is resized
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 115
diff changeset
   147
73
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   148
!VDBUnixDebuggerConsoleApplication class methodsFor:'documentation'!
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   149
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   150
version_HG
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   151
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   152
    ^ '$Changeset: <not expanded> $'
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   153
! !
82e202dec6cb UX: added preferences to automatically enable frame filters and pretty printers
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
   154