Community
Participate
Working Groups
On Windows (VISTA,Win7...) listtasks.exe don't show up processes running as Windows Services. (Introduced with UAC) This pretend attaching to this process, if Eclipse is running with administrator privileges. GDB does handle this already. I noticed that it is enough if listtasks try to call AdjustTokenPrivileges and enable SE_DEBUG_NAME. Without this any OpenProcess will fail on a process running as a service. if AdjustTokenPrivileges fails, listtasks should continue without error to work as before, if user doesn't have Debug Rights. (Common: Run eclipse as Administrator) I could provide a simple patch for "org.eclipse.cdt/core/org.eclipse.cdt.core.win32/library/listtasks/listtasks.cpp" , but currently this will break support for Windows95 ;) If any more information is required, please ask. It's my first bugreport here. Technical Details: listtasks enumerate over all process IDs. On each process it calls OpenProcess to get image name/filenname. This will fail with "5 - Access denied" if calling thread is missing SE_DEBUG_NAME rights. To Reproduce, try to attach to any process running as an service.
Created attachment 257664 [details] Simple patch,workaround around problem by requesting Debug privileges Patch should only show a possible solution.