Community
Participate
Working Groups
// Process Events of type DsfMIConsoleStreamOutput here
MIConsoleStreamOutput exec = (MIConsoleStreamOutput) oobr;
// Look for events with Pattern ^[New Thread 1077300144 (LWP 7973)
// Look for events with Pattern ^[New Thread ... ]
Pattern pattern = Pattern.compile("(^\\[New Thread.*LWP\\s*)(\\d*)", Pattern.MULTILINE); //$NON-NLS-1$
Pattern pattern = Pattern.compile("(^\\[New Thread.*\\])", Pattern.MULTILINE); //$NON-NLS-1$
Matcher matcher = pattern.matcher(exec.getCString());
if (matcher.find()) {
String threadId = Integer.toString(++fLastThreadId);