GDBMITraceCommandRecord.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 20 Jun 2019 11:24:54 +0100
changeset 195 17a6f1d1cb22
parent 151 7a2a98fe63e2
child 259 651864c2aa29
permissions -rw-r--r--
Autodetect GDB data directory As a courtesy to the us who use GDB from build tree, try to detect and automatically add --data-directory if no arguments are specified in GDB command (`GDBProcess gdbCommand`).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
151
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
jv:libgdbs - GNU Debugger Interface Library
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
Copyright (C) 2015-now Jan Vrany
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
This library is free software; you can redistribute it and/or
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
modify it under the terms of the GNU Lesser General Public
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
License as published by the Free Software Foundation; either
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
version 2.1 of the License. 
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
This library is distributed in the hope that it will be useful,
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
but WITHOUT ANY WARRANTY; without even the implied warranty of
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
Lesser General Public License for more details.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
You should have received a copy of the GNU Lesser General Public
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
License along with this library; if not, write to the Free Software
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
"{ Package: 'jv:libgdbs' }"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
"{ NameSpace: Smalltalk }"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
Object subclass:#GDBMITraceCommandRecord
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
	instanceVariableNames:'string'
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
	classVariableNames:''
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
	poolDictionaries:''
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
	category:'GDB-Private-MI Trace'
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
!GDBMITraceCommandRecord class methodsFor:'documentation'!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
copyright
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
jv:libgdbs - GNU Debugger Interface Library
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
Copyright (C) 2015-now Jan Vrany
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
This library is free software; you can redistribute it and/or
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
modify it under the terms of the GNU Lesser General Public
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
License as published by the Free Software Foundation; either
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
version 2.1 of the License. 
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
This library is distributed in the hope that it will be useful,
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
but WITHOUT ANY WARRANTY; without even the implied warranty of
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
Lesser General Public License for more details.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
You should have received a copy of the GNU Lesser General Public
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
License along with this library; if not, write to the Free Software
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
! !
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
!GDBMITraceCommandRecord methodsFor:'accessing'!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    54
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    55
string
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    56
    ^ string
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    57
!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    58
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    59
string:something
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    60
    string := something.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    61
! !
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    62
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    63
!GDBMITraceCommandRecord methodsFor:'printing & storing'!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    64
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    65
printOn:aStream
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    66
    "append a printed representation if the receiver to the argument, aStream"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    67
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    68
    aStream nextPutLine: '>>>'.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    69
    string printOn: aStream.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    70
    aStream cr.
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    71
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    72
    "Modified: / 24-06-2014 / 00:09:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    73
! !
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    74
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    75
!GDBMITraceCommandRecord methodsFor:'testing'!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    77
isCommand
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    78
    ^ true
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    80
    "Created: / 24-06-2014 / 00:41:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
!
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    83
isResponse
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
    ^ false
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    86
    "Created: / 24-06-2014 / 00:41:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    87
! !
7a2a98fe63e2 Portability: get rid of private classes and make them public
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88