Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356463

Summary: [breakpoints] Wrong label in thread filter for programs compiled without pthreads
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, nobody, pawel.1.piech
Version: 8.0Flags: marc.khouzam: review? (nobody)
Target Milestone: 8.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to check for null id and add id of process marc.khouzam: iplog-

Description Marc Khouzam CLA 2011-09-01 08:34:12 EDT
In Bug 349736 comment 15, Mikhail writes:
I get "Thread[1]null" in the filter dialog because the "target-id" attribute is
"process 31286". I get the same target id for GDB 7.2 and 7.3.
This is a simple program without pthreads, with pthreads the labels are fine.
Comment 1 Marc Khouzam CLA 2011-09-01 09:05:44 EDT
Created attachment 202603 [details]
Patch to check for null id and add id of process

This patch checks that the threadId is not null, and also adds the processId to the process line of the filter dialog.

I tested with a non-pthread program, a single thread pthread program and a multi-threaded pthread program.

I'll commit to master and 8_0
Comment 2 Marc Khouzam CLA 2011-09-01 09:14:11 EDT
Mikhail, can you review?
Comment 3 CDT Genie CLA 2011-09-01 09:23:04 EDT
*** cdt git genie on behalf of Marc Khouzam ***

    Bug 356463: Wrong label in thread filter for programs compiled without pthreads

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9cf02934609bb771a4d145ebee59bbac236f9be7
Comment 4 CDT Genie CLA 2011-09-01 09:23:05 EDT
*** cdt git genie on behalf of Marc Khouzam ***

    Bug 356463: Wrong label in thread filter for programs compiled without pthreads

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=80f8e653dde2bb5363e6dce989a26f85c0512aa4