Fix rendering of an instruction in instruction list
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 30 Jan 2019 11:36:40 +0000
changeset 146 c037aa4ce54f
parent 145 3b9ab4badbff
child 147 4087090b3581
Fix rendering of an instruction in instruction list The disassembly string comes from GDB which in some cases (e.g, RISC-V) uses tab to separate mnemonic from operands. This tab must be expanded before the string is handed over to the list view to render otherwise it would show replacement glyph ("cheese").
VDBInstructionPresenter.st
--- a/VDBInstructionPresenter.st	Tue Jan 29 09:58:21 2019 +0000
+++ b/VDBInstructionPresenter.st	Wed Jan 30 11:36:40 2019 +0000
@@ -77,11 +77,11 @@
         ].
         instruction address printOn: s base: 16 size: 16 fill: $0.
         s space.
-        s nextPutAll: instruction assembly
+        s nextPutAll: instruction assembly withTabsExpanded
     ]
 
     "Created: / 22-06-2018 / 12:21:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 09-08-2018 / 11:15:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 30-01-2019 / 11:33:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !VDBInstructionPresenter methodsFor:'testing'!
@@ -90,3 +90,10 @@
     ^ true
 ! !
 
+!VDBInstructionPresenter class methodsFor:'documentation'!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+! !
+