Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 304754 - MIThreadCreatedEvent not being generated in a cygwin/mingw debug session
Summary: MIThreadCreatedEvent not being generated in a cygwin/mingw debug session
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: John Cortell CLA
QA Contact: Marc Khouzam CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 17:37 EST by John Cortell CLA
Modified: 2010-03-05 13:31 EST (History)
2 users (show)

See Also:
marc.khouzam: review+


Attachments
fix (1.54 KB, patch)
2010-03-04 17:40 EST, John Cortell CLA
john.cortell: iplog-
john.cortell: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Cortell CLA 2010-03-04 17:37:52 EST
The OOB record for a thread creation on a POSIX system (linux) is, by example,

   [New Thread 1077300144 (LWP 7973)]

On Windows (cygwin/mingw), it's

   [New thread 4092.0x8c4]

The code in CLIEventProcessor.eventReceived(Object) is failing to match the latter.

I'm going to greatly simplify the regex pattern as DSF-GDB doesn't use any of the information provided in the OOB. That is, it doesn't use the ID(s) in the message. It just wants to identify a new-thread line. As such, it might as well just look for a line that starts with "[New thread ".
Comment 1 John Cortell CLA 2010-03-04 17:40:54 EST
Created attachment 161047 [details]
fix

Committed to HEAD. Marc, please review.
Comment 2 John Cortell CLA 2010-03-04 17:41:36 EST
Fixed
Comment 3 Marc Khouzam CLA 2010-03-05 13:31:52 EST
Looks good