summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Kozlov2012-10-18 11:39:13 (EDT)
committerMikhail Khodjaiants2012-10-18 11:39:13 (EDT)
commita0f28b668f49b649733e0de2031d957a9f57e5f3 (patch)
treeed06e2e24c326286a71a8e362acda9ab370bdbfc
parentf2724c6bdf07dcdcf14f59fc7f8e728f114e6555 (diff)
downloadorg.eclipse.cdt-a0f28b668f49b649733e0de2031d957a9f57e5f3.zip
org.eclipse.cdt-a0f28b668f49b649733e0de2031d957a9f57e5f3.tar.gz
org.eclipse.cdt-a0f28b668f49b649733e0de2031d957a9f57e5f3.tar.bz2
Bug 391115 - Disassembly view presents "\t" in instruction strings
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIInstruction.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIInstruction.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIInstruction.java
index cf3c3e6..48ffcdb 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIInstruction.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIInstruction.java
@@ -8,6 +8,7 @@
* Contributors:
* QNX Software Systems - Initial API and implementation
* Ericsson - Adapted for DSF
+ * Dmitry Kozlov (Mentor) - Add tab symbols parsing (Bug 391115)
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command.output;
@@ -111,6 +112,8 @@ public class MIInstruction extends AbstractInstruction {
translated string since the only thing we are doing is
displaying it. */
str = ((MIConst) value).getString();
+ /* to avoid improper displaying of instructions we need to translate tabs */
+ str = str.replace("\\t", "\t"); //$NON-NLS-1$ //$NON-NLS-2$
char chars[] = str.toCharArray();
int index = 0;