GDBCommand.st
changeset 85 6fea1000a2a5
parent 78 c24e7d8bc881
child 91 472a4841a8b6
--- a/GDBCommand.st	Thu Jul 06 07:54:57 2017 +0200
+++ b/GDBCommand.st	Tue Jul 11 23:37:04 2017 +0200
@@ -31,9 +31,19 @@
 !GDBCommand methodsFor:'converting'!
 
 asString
-    ^ self subclassResponsibility
+    ^ String streamContents: [ :s | (GDBMIPrinter on: s) printCommand: self ]
+
+    "Created: / 09-06-2014 / 18:42:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 11-07-2017 / 23:14:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
 
-    "Created: / 02-06-2014 / 23:34:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!GDBCommand methodsFor:'printing & storing'!
+
+printOn: aStream
+    super printOn: aStream.
+    aStream nextPut: $(; nextPutAll: self asString; nextPut:$)
+
+    "Created: / 11-07-2017 / 23:23:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !GDBCommand methodsFor:'testing'!