1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fix for bug 49278 do not retry the "info threads" command if the first attempt fails.

This commit is contained in:
Mikhail Khodjaiants 2003-12-22 19:54:11 +00:00
parent d8d5fd9434
commit 5432ae0bcd
2 changed files with 13 additions and 3 deletions

View file

@ -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

View file

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