VDBUnixInferiorConsoleApplication.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: 44
diff changeset
     1
"
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
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: 44
diff changeset
     3
Copyright (C) 2015-now Jan Vrany
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
     4
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: 44
diff changeset
     5
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
     6
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: 115
diff changeset
     7
of this software and associated documentation files (the 'Software'), to deal
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
     8
in the Software without restriction, including without limitation the rights
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
     9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    10
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: 115
diff changeset
    11
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: 44
diff changeset
    12
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    13
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: 115
diff changeset
    14
copies or substantial portions of the Software.
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    15
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    16
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: 115
diff changeset
    17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    19
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    21
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: 115
diff changeset
    22
SOFTWARE.
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    23
"
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
"{ Package: 'jv:vdb' }"
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    26
"{ NameSpace: Smalltalk }"
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    27
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    28
VDBAbstractUnixConsoleApplication subclass:#VDBUnixInferiorConsoleApplication
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    29
	instanceVariableNames:''
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
	classVariableNames:''
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
	poolDictionaries:''
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    32
	category:'VDB-UI-Console-Unix'
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
!
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    35
!VDBUnixInferiorConsoleApplication 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: 44
diff changeset
    36
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    37
copyright
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    38
"
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    39
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: 44
diff changeset
    40
Copyright (C) 2015-now Jan Vrany
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    41
Copyright (C) 2022 LabWare
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    42
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    43
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: 115
diff changeset
    44
of this software and associated documentation files (the 'Software'), to deal
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    45
in the Software without restriction, including without limitation the rights
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    46
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    47
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: 115
diff changeset
    48
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: 44
diff changeset
    49
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    50
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: 115
diff changeset
    51
copies or substantial portions of the Software.
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    52
264
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    53
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: 115
diff changeset
    54
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    55
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    56
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    57
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23960fcb9dac Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents: 115
diff changeset
    58
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: 115
diff changeset
    59
SOFTWARE.
49
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    60
"
2ec7f7ed9242 License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 44
diff changeset
    61
! !
5
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
    62
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    63
!VDBUnixInferiorConsoleApplication class methodsFor:'accessing'!
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    64
115
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
    65
defaultWindowTitle
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
    66
    ^ self resources string: 'Inferior Console'
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    67
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    68
    "Created: / 08-01-2018 / 18:59:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
115
0dd989ce3ae7 Cleanup default window titles
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 51
diff changeset
    69
    "Modified: / 03-10-2018 / 15:39:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    70
! !
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    71
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    72
!VDBUnixInferiorConsoleApplication class methodsFor:'startup-web applications'!
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    73
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    74
initialPageSpec
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    75
    "this is only required for web-applications"
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    77
    ^ self shouldImplement
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    78
!
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    80
pageSpecs
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    81
    "this is only required for web-applications"
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    82
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    83
    ^ self shouldImplement
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
! !
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
    86
!VDBUnixInferiorConsoleApplication methodsFor:'accessing'!
6
981a32abdbf6 Fixes for debugger/inferior console.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
    87
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    88
consoleInput
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    89
    "superclass VDBAbstractConsoleApplication says that I am responsible to implement this method"
6
981a32abdbf6 Fixes for debugger/inferior console.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
    90
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    91
    ^ debugger inferiorStdout
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    92
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    93
    "Modified: / 01-06-2017 / 09:46:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6
981a32abdbf6 Fixes for debugger/inferior console.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
    94
!
981a32abdbf6 Fixes for debugger/inferior console.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
    95
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    96
consoleOutput
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    97
    "superclass VDBAbstractConsoleApplication says that I am responsible to implement this method"
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    98
40
d766d4c854a2 Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 6
diff changeset
    99
    ^ debugger inferiorStdout
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
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: 6
diff changeset
   101
    "Modified: / 01-06-2017 / 09:45:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   102
! !
9741a7683808 Added VDBInferiorConsoleApplication to display debugee's input/output.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   103
51
6c982fc25fe2 Renamed `VDBAbstractConsoleApplication` to `VDBAbstractUnixConsoleApplication`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 49
diff changeset
   104
!VDBUnixInferiorConsoleApplication class methodsFor:'documentation'!
5
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   105
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   106
version_HG
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   107
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   108
    ^ '$Changeset: <not expanded> $'
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   109
! !
fac6e83fd5c0 Implemented VDBTabbingContainer.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2
diff changeset
   110