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

Bug 288317

Summary: CDT with gdb: Attach to process list does not list all processes in Mac OSX 10.5
Product: [Tools] CDT Reporter: Andy <anandkris78>
Component: cdt-debugAssignee: Project Inbox <cdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact: Doug Schaefer <cdtdoug>
Severity: major    
Priority: P3 CC: aleherb+eclipse, eclipse, pawel.1.piech
Version: 0 DD 1.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andy CLA 2009-09-01 22:18:39 EDT
User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GIS IE 6.0 Build 20060616; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; InfoPath.2)
Build Identifier: 20090619-0625

With CDT I am using gdb as my debugger. The system is a Intel based MAC(Leopard). When I try to attach to a running process, I dont see any useful processes to attach. I always the see the same 5 processes. I tried running eclipse as root, but the list of processes never includes all the processes that are actually running. I tried Gdb standalone and I can attach to the processes. Seems to be a bug in CDT code that fetches the process list for MAC 

Reproducible: Always
Comment 1 Paul Harrison CLA 2009-10-07 16:16:04 EDT
This is extremely irritating on OS X, and the  been around for ages - since cdt 4 - a good workround would be to simply  allow the user to type a pid into the dialog rather than restricting to the list presented
Comment 2 Paul Harrison CLA 2009-10-07 16:25:33 EDT
see also Bug 269187 for another non- windows/linux platform where this is not working
Comment 3 Paul Harrison CLA 2009-10-07 16:45:52 EDT
problem in this code http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core.macosx/src/org/eclipse/cdt/internal/core/macosx/ProcessList.java?root=Tools_Project&view=markup

as 

ps -a 

is all that is performed, which excludes processes without terminals....
Comment 4 Anton Leherbauer CLA 2009-11-10 02:28:07 EST

*** This bug has been marked as a duplicate of bug 208522 ***