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:
parent
ca733564e8
commit
1c9e947c87
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue