Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 269838 | Differences between
and this patch

Collapse All | Expand All

(-)mi/org/eclipse/cdt/debug/mi/core/command/factories/macos/MacOsCLIInfoThreadsInfo.java (-3 / +5 lines)
Lines 52-60 Link Here
52
			threadIds = new int[0];
52
			threadIds = new int[0];
53
		}
53
		}
54
		Arrays.sort(threadIds);
54
		Arrays.sort(threadIds);
55
		if (threadIds.length > 0) {
55
		
56
			currentThreadId = threadIds[0];
56
		// -thread-list-ids doesn't provide the current thread id so we
57
		}
57
		// set currentThreadId to a dumb value. This has the effect of falling
58
		// back to the thread id provided by the stopped event. See EventManager::processSuspendedEvent
59
		currentThreadId = 0;
58
	}
60
	}
59
61
60
	void parseThreadIds(MITuple tuple) {
62
	void parseThreadIds(MITuple tuple) {
(-)cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java (-1 / +3 lines)
Lines 347-353 Link Here
347
				} else {
347
				} else {
348
					ids = info.getThreadIds();
348
					ids = info.getThreadIds();
349
					names = info.getThreadNames();
349
					names = info.getThreadNames();
350
					currentThreadId = info.getCurrentThread();
350
					if (info.getCurrentThread() != 0) {
351
						currentThreadId = info.getCurrentThread();
352
					}
351
				}
353
				}
352
				if (ids != null && ids.length > 0) {
354
				if (ids != null && ids.length > 0) {
353
					cthreads = new Thread[ids.length];
355
					cthreads = new Thread[ids.length];

Return to bug 269838