Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java
index b0fc4fd8ea8..10075f367ad 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIAddInferiorInfo.java
@@ -17,37 +17,37 @@ package org.eclipse.cdt.dsf.mi.service.command.output;
/**
* -add-inferior
* ^done,inferior="i2"
- *
+ *
* @since 4.0
*/
public class MIAddInferiorInfo extends MIInfo {
- private String fGroupId;
+ private String fGroupId;
+
+ public MIAddInferiorInfo(MIOutput record) {
+ super(record);
+ if (isDone()) {
+ MIOutput out = getMIOutput();
+ MIResultRecord rr = out.getMIResultRecord();
+ if (rr != null) {
+ MIResult[] results = rr.getMIResults();
+ for (int i = 0; i < results.length; i++) {
+ String var = results[i].getVariable();
+ MIValue resultVal = results[i].getMIValue();
+ String str = ""; //$NON-NLS-1$
+ if (resultVal instanceof MIConst) {
+ str = ((MIConst) resultVal).getString();
+ }
- public MIAddInferiorInfo(MIOutput record) {
- super(record);
- if (isDone()) {
- MIOutput out = getMIOutput();
- MIResultRecord rr = out.getMIResultRecord();
- if (rr != null) {
- MIResult[] results = rr.getMIResults();
- for (int i = 0; i < results.length; i++) {
- String var = results[i].getVariable();
- MIValue resultVal = results[i].getMIValue();
- String str = ""; //$NON-NLS-1$
- if (resultVal instanceof MIConst) {
- str = ((MIConst)resultVal).getString();
- }
+ if (var.equals("inferior")) { //$NON-NLS-1$
+ fGroupId = str;
+ }
+ }
+ }
+ }
+ }
- if (var.equals("inferior")) { //$NON-NLS-1$
- fGroupId = str;
- }
- }
- }
- }
- }
-
- public String getGroupId() {
- return fGroupId;
- }
+ public String getGroupId() {
+ return fGroupId;
+ }
}

Back to the top