Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-02-19 10:57:36 -0500
committerAlain Magloire2004-02-19 10:57:36 -0500
commitedb523de6f9a32058b1001cf06ee4250456d5016 (patch)
tree9e0261aac6062d2e4141270b843b6be6a4da14f3
parent9ce371db1594ab3d10b4b471fa5501ec4ad33784 (diff)
downloadorg.eclipse.cdt-edb523de6f9a32058b1001cf06ee4250456d5016.tar.gz
org.eclipse.cdt-edb523de6f9a32058b1001cf06ee4250456d5016.tar.xz
org.eclipse.cdt-edb523de6f9a32058b1001cf06ee4250456d5016.zip
Fix 52317
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog7
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java37
2 files changed, 28 insertions, 16 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
index be39834e1f..7baaf7bac6 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
@@ -1,3 +1,10 @@
+2004-02-19 Alain Magloire
+
+ PR 52317
+ The children were added in the wrong order.
+
+ * src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
+
2004-01-29 Alain Magloire
CDT Debug UI prefers things to be in ascending number.
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
index 0fbbbc8d23..264d5fc200 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
@@ -238,23 +238,28 @@ public class GDBTypeParser {
}
void prependChild(int kind, int d) {
- GDBDerivedType dType = new GDBDerivedType(genericType, kind, d);
- if (gdbDerivedType != null) {
- // get to the last node in the list and add the new to it
- GDBType leaf = genericType;
- GDBDerivedType node;
- boolean keepGoing = true;
- for (node = gdbDerivedType; keepGoing;) {
- leaf = node.getChild();
- if (leaf instanceof GDBDerivedType) {
- node = (GDBDerivedType) leaf;
- } else {
- keepGoing = false;
- }
- }
- node.setChild(dType);
+// GDBDerivedType dType = new GDBDerivedType(genericType, kind, d);
+// if (gdbDerivedType != null) {
+// // get to the last node in the list and add the new to it
+// GDBType leaf = genericType;
+// GDBDerivedType node;
+// boolean keepGoing = true;
+// for (node = gdbDerivedType; keepGoing;) {
+// leaf = node.getChild();
+// if (leaf instanceof GDBDerivedType) {
+// node = (GDBDerivedType) leaf;
+// } else {
+// keepGoing = false;
+// }
+// }
+// node.setChild(dType);
+// } else {
+// gdbDerivedType = dType;
+// }
+ if (gdbDerivedType == null) {
+ gdbDerivedType = new GDBDerivedType(genericType, kind, d);
} else {
- gdbDerivedType = dType;
+ gdbDerivedType = new GDBDerivedType(gdbDerivedType, kind, d);
}
}

Back to the top