Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Kozlov2012-10-18 15:39:13 +0000
committerMikhail Khodjaiants2012-10-18 16:07:28 +0000
commit262d3cdd8184537e0aac94ead1c04ee3b0c5272a (patch)
tree03ff30abeb906da4f5f68f31ed72de7e08914f4c
parent7140f7410a4c40af1cfd2b5073e8242fcc173caa (diff)
downloadorg.eclipse.cdt-262d3cdd8184537e0aac94ead1c04ee3b0c5272a.tar.gz
org.eclipse.cdt-262d3cdd8184537e0aac94ead1c04ee3b0c5272a.tar.xz
org.eclipse.cdt-262d3cdd8184537e0aac94ead1c04ee3b0c5272a.zip
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 cf3c3e6ae97..48ffcdbf856 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;

Back to the top