author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 30 Oct 2018 20:04:25 +0000 | |
changeset 159 | 5a364902a0fa |
parent 126 | fb73b0af430b |
child 259 | 651864c2aa29 |
permissions | -rw-r--r-- |
97 | 1 |
" |
2 |
jv:libgdbs - GNU Debugger Interface Library |
|
3 |
Copyright (C) 2015-now Jan Vrany |
|
4 |
||
5 |
This library is free software; you can redistribute it and/or |
|
6 |
modify it under the terms of the GNU Lesser General Public |
|
7 |
License as published by the Free Software Foundation; either |
|
8 |
version 2.1 of the License. |
|
9 |
||
10 |
This library is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 |
Lesser General Public License for more details. |
|
14 |
||
15 |
You should have received a copy of the GNU Lesser General Public |
|
16 |
License along with this library; if not, write to the Free Software |
|
17 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 |
" |
|
19 |
"{ Package: 'jv:libgdbs' }" |
|
20 |
||
21 |
"{ NameSpace: Smalltalk }" |
|
22 |
||
23 |
GDBObject subclass:#GDBMemoryDumpRow |
|
24 |
instanceVariableNames:'addr data ascii' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'GDB-Core' |
|
28 |
! |
|
29 |
||
30 |
!GDBMemoryDumpRow class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
jv:libgdbs - GNU Debugger Interface Library |
|
35 |
Copyright (C) 2015-now Jan Vrany |
|
36 |
||
37 |
This library is free software; you can redistribute it and/or |
|
38 |
modify it under the terms of the GNU Lesser General Public |
|
39 |
License as published by the Free Software Foundation; either |
|
40 |
version 2.1 of the License. |
|
41 |
||
42 |
This library is distributed in the hope that it will be useful, |
|
43 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
44 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
45 |
Lesser General Public License for more details. |
|
46 |
||
47 |
You should have received a copy of the GNU Lesser General Public |
|
48 |
License along with this library; if not, write to the Free Software |
|
49 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
50 |
" |
|
51 |
! ! |
|
52 |
||
53 |
!GDBMemoryDumpRow class methodsFor:'accessing-magritte'! |
|
54 |
||
55 |
description |
|
56 |
^ super description |
|
57 |
define: #addr as: Integer; |
|
58 |
define: #data as: Array of: String; |
|
59 |
define: #ascii as: String; |
|
60 |
yourself |
|
61 |
||
62 |
"Created: / 25-01-2018 / 08:55:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
63 |
"Modified: / 25-01-2018 / 22:57:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
64 |
! ! |
|
65 |
||
66 |
!GDBMemoryDumpRow methodsFor:'accessing'! |
|
67 |
||
68 |
addr |
|
69 |
^ addr |
|
70 |
||
71 |
"Created: / 25-01-2018 / 08:57:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
72 |
! |
|
73 |
||
74 |
ascii |
|
75 |
^ ascii |
|
76 |
! |
|
77 |
||
78 |
data |
|
79 |
^ data |
|
80 |
! ! |
|
81 |
||
82 |
!GDBMemoryDumpRow methodsFor:'printing & storing'! |
|
83 |
||
84 |
printOn:aStream |
|
85 |
"append a printed representation of the receiver to the argument, aStream" |
|
86 |
||
87 |
super printOn:aStream. |
|
126
fb73b0af430b
Added initial support for disassembling
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
97
diff
changeset
|
88 |
aStream nextPutAll:'(0x'. |
fb73b0af430b
Added initial support for disassembling
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
97
diff
changeset
|
89 |
addr printOn:aStream base: 16 size: 16 fill: $0. |
97 | 90 |
aStream nextPutAll:': '. |
91 |
data do:[:each | each printOn: aStream ] separatedBy:[ aStream space ]. |
|
92 |
ascii notNil ifTrue:[ |
|
93 |
aStream space. |
|
94 |
aStream nextPutAll: ascii |
|
95 |
]. |
|
96 |
aStream nextPutAll:')'. |
|
97 |
||
126
fb73b0af430b
Added initial support for disassembling
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
97
diff
changeset
|
98 |
"Modified: / 04-07-2018 / 13:56:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
97 | 99 |
! ! |
100 |
||
101 |
!GDBMemoryDumpRow class methodsFor:'documentation'! |
|
102 |
||
103 |
version_HG |
|
104 |
||
105 |
^ '$Changeset: <not expanded> $' |
|
106 |
! ! |
|
107 |