Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2009-02-05 13:59:30 -0500
committerAlena Laskavaia2009-02-05 13:59:30 -0500
commit95c8bc95e15b475f2027deb2cb58cb1616c7a004 (patch)
tree5f31e3d4e2a407ff40ea42537d5f2435fb6467ae
parenta96590337db68e0ecd8d7cd2a9c5030e59373182 (diff)
downloadorg.eclipse.cdt-95c8bc95e15b475f2027deb2cb58cb1616c7a004.tar.gz
org.eclipse.cdt-95c8bc95e15b475f2027deb2cb58cb1616c7a004.tar.xz
org.eclipse.cdt-95c8bc95e15b475f2027deb2cb58cb1616c7a004.zip
- fixed minor issue with empty assembly lines
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIDataDisassembleInfo.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIDataDisassembleInfo.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIDataDisassembleInfo.java
index 44e5771d50..0cf14f4b47 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIDataDisassembleInfo.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIDataDisassembleInfo.java
@@ -90,7 +90,7 @@ public class MIDataDisassembleInfo extends MIInfo {
}
void parse(MIList list, List srcList, List asmList) {
- // src and assenbly is different
+ // src and assembly is different
// Mixed mode.
MIResult[] results = list.getMIResults();
@@ -100,7 +100,10 @@ public class MIDataDisassembleInfo extends MIInfo {
if (var.equals("src_and_asm_line")) { //$NON-NLS-1$
MIValue value = results[i].getMIValue();
if (value instanceof MITuple) {
- srcList.add(new MISrcAsm((MITuple)value));
+ MISrcAsm miSrcAsm = new MISrcAsm((MITuple) value);
+ if (miSrcAsm.getMIAsms() != null && miSrcAsm.getMIAsms().length > 0) {
+ srcList.add(miSrcAsm);
+ }
}
}
}

Back to the top