1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

- fixed minor issue with src_asm if request is empty

This commit is contained in:
Alena Laskavaia 2009-02-05 18:58:19 +00:00
parent ca733564e8
commit 1c9e947c87

View file

@ -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);
}
}
}
}