Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-12-22 12:31:30 -0500
committerMikhail Khodjaiants2003-12-22 12:31:30 -0500
commit9376ac2eba0fcb91866f77786a887c09d0647a0a (patch)
tree279a93093595f12bc70d63634576c17cb6ca0b6d
parenta145cca177eea28221a0a88765c4c6d5a30360b9 (diff)
downloadorg.eclipse.cdt-9376ac2eba0fcb91866f77786a887c09d0647a0a.tar.gz
org.eclipse.cdt-9376ac2eba0fcb91866f77786a887c09d0647a0a.tar.xz
org.eclipse.cdt-9376ac2eba0fcb91866f77786a887c09d0647a0a.zip
Fix for Bug 49278 do not retry the "info threads" command if the first attempt fails.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog6
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java10
2 files changed, 13 insertions, 3 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
index 79baed360cc..c047a6b69e8 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
@@ -1,3 +1,9 @@
+2003-12-22 Mikhail Khodjaiants
+ Fix for Bug 49278 do not retry the "info threads" command if the first attempt fails.
+ Throw an exception from the "getCThreads" method when it fails.
+
+ * src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
+
2003-12-18 Alain Magloire
PR 49148
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
index b286dda145e..8bba618d1ce 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
@@ -164,7 +164,11 @@ public class Target implements ICDITarget {
currentThreadId = newThreadId;
// get the new Threads.
- currentThreads = getCThreads();
+ try {
+ currentThreads = getCThreads();
+ } catch (CDIException e) {
+ currentThreads = noThreads;
+ }
// Fire CreatedEvent for new threads.
// Replace the new threads with the old thread object
@@ -222,7 +226,7 @@ public class Target implements ICDITarget {
/**
* Do the real work of call -thread-list-ids.
*/
- public Thread[] getCThreads() { //throws CDIException {
+ public Thread[] getCThreads() throws CDIException {
Thread[] cthreads = noThreads;
MISession mi = session.getMISession();
CommandFactory factory = mi.getCommandFactory();
@@ -259,7 +263,7 @@ public class Target implements ICDITarget {
}
} catch (MIException e) {
// Do not throw anything in this case.
- //throw new CDIException(e.getMessage());
+ throw new CDIException(e.getMessage());
}
return cthreads;
}

Back to the top