mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 18:55:38 +02:00
Fix for bug 49278 do not retry the "info threads" command if the first attempt fails.
This commit is contained in:
parent
d8d5fd9434
commit
5432ae0bcd
2 changed files with 13 additions and 3 deletions
|
@ -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
|
2003-12-18 Alain Magloire
|
||||||
|
|
||||||
PR 49148
|
PR 49148
|
||||||
|
|
|
@ -164,7 +164,11 @@ public class Target implements ICDITarget {
|
||||||
currentThreadId = newThreadId;
|
currentThreadId = newThreadId;
|
||||||
|
|
||||||
// get the new Threads.
|
// get the new Threads.
|
||||||
currentThreads = getCThreads();
|
try {
|
||||||
|
currentThreads = getCThreads();
|
||||||
|
} catch (CDIException e) {
|
||||||
|
currentThreads = noThreads;
|
||||||
|
}
|
||||||
|
|
||||||
// Fire CreatedEvent for new threads.
|
// Fire CreatedEvent for new threads.
|
||||||
// Replace the new threads with the old thread object
|
// 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.
|
* Do the real work of call -thread-list-ids.
|
||||||
*/
|
*/
|
||||||
public Thread[] getCThreads() { //throws CDIException {
|
public Thread[] getCThreads() throws CDIException {
|
||||||
Thread[] cthreads = noThreads;
|
Thread[] cthreads = noThreads;
|
||||||
MISession mi = session.getMISession();
|
MISession mi = session.getMISession();
|
||||||
CommandFactory factory = mi.getCommandFactory();
|
CommandFactory factory = mi.getCommandFactory();
|
||||||
|
@ -259,7 +263,7 @@ public class Target implements ICDITarget {
|
||||||
}
|
}
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
// Do not throw anything in this case.
|
// Do not throw anything in this case.
|
||||||
//throw new CDIException(e.getMessage());
|
throw new CDIException(e.getMessage());
|
||||||
}
|
}
|
||||||
return cthreads;
|
return cthreads;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue