Community
Participate
Working Groups
threadIds = new int[0];
}
Arrays.sort(threadIds);
if (threadIds.length > 0) {
currentThreadId = threadIds[0];
// -thread-list-ids doesn't provide the current thread id so we
// set currentThreadId to a dumb value. This has the effect of falling
// back to the thread id provided by the stopped event. See EventManager::processSuspendedEvent
currentThreadId = -1;
void parseThreadIds(MITuple tuple) {
currentTarget.updateState(threadId);
try {
Thread cthread = (Thread)currentTarget.getCurrentThread();
// As a fallback, use the id from the stopped event
if(cthread == null) {
cthread = (Thread)currentTarget.getThread(threadId);
if (cthread != null) {
cthread.getCurrentStackFrame();
} else {
Thread currentThread = null;
currentThread = (Thread)currentTarget.getCurrentThread();
if(currentThread == null) {
currentThread = (Thread)currentTarget.getThread(stopped.getThreadId());
if(currentThread != null) {
tid = currentThread.getId();
else {
return true;
} catch (CDIException e1) {
// Select the old thread now.
if (tid > 0) {
MIThreadSelect selectThread = factory.createMIThreadSelect(tid);