Community
Participate
Working Groups
Build Identifier: I20100608-0911 Attach application debug configuration requires project name , this shouldn't happen . (This is not a case with galileo) . Eclipse CVS Head has this bug. Reproducible: Always Steps to Reproduce: 1.Open Debug Configuration 2.Click "C/C++ Attach to Application" wizard 3.Try with an empty project name.
This regression has to do with the refactoring of AbstractCLaunchDelegate2
Created attachment 179593 [details] Fix for HEAD AbstractCLaunchDelegate2 has a member called 'requireCProject', which should be set to false for a DSF-GDB attach session. This patch does this. Committed to HEAD.
Ken, can you review this change?
Also committed to the 7_0 branch for 7.0.2
*** cdt cvs genie on behalf of mkhouzam *** Bug 326137: Allow DSF-GDB attach session to work without a project or binary. [*] LaunchUtils.java 1.16 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java?root=Tools_Project&r1=1.15&r2=1.16 [*] GdbLaunchDelegate.java 1.19 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunchDelegate.java?root=Tools_Project&r1=1.18&r2=1.19 [+] GdbAttachLaunchDelegate.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbAttachLaunchDelegate.java?root=Tools_Project&revision=1.1&view=markup [*] plugin.xml 1.7 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/plugin.xml?root=Tools_Project&r1=1.6&r2=1.7 [*] LaunchUtils.java 1.12.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java?root=Tools_Project&r1=1.12&r2=1.12.2.1 [*] GdbLaunchDelegate.java 1.16.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunchDelegate.java?root=Tools_Project&r1=1.16&r2=1.16.2.1 [+] GdbAttachLaunchDelegate.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbAttachLaunchDelegate.java?root=Tools_Project&revision=1.1&view=markup [*] plugin.xml 1.5.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/plugin.xml?root=Tools_Project&r1=1.5&r2=1.5.2.1
*** cdt cvs genie on behalf of jcortell *** Bug 326137: Allow DSF-GDB attach session to work without a project or binary (add missing @since in new constructor) [*] GdbLaunchDelegate.java 1.20 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunchDelegate.java?root=Tools_Project&r1=1.19&r2=1.20
*** cdt cvs genie on behalf of mkhouzam *** Bug 326137: Missing @since tag [*] GdbAttachLaunchDelegate.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbAttachLaunchDelegate.java?root=Tools_Project&r1=1.1&r2=1.2
(In reply to comment #4) > Also committed to the 7_0 branch for 7.0.2 I had to revert this fix because it broke the API. I'll try to find a solution that does not change the API
Created attachment 179755 [details] Fix for 7_0 This fix reverts to use the verifyCProject method that DSF-GDB was using in Galileo. It does the same thing as the new method, but allows for an empty project name. It is up to the launch tab to prevent this from happening for launches that are not 'attach'. Committed to 7_0
*** cdt cvs genie on behalf of mkhouzam *** Bug 326137: Reverted the fix because it broke the API [*] LaunchUtils.java 1.12.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java?root=Tools_Project&r1=1.12.2.1&r2=1.12.2.2 [*] GdbLaunchDelegate.java 1.16.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunchDelegate.java?root=Tools_Project&r1=1.16.2.1&r2=1.16.2.2 [-] GdbAttachLaunchDelegate.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbAttachLaunchDelegate.java?root=Tools_Project&view=markup [*] plugin.xml 1.5.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/plugin.xml?root=Tools_Project&r1=1.5.2.1&r2=1.5.2.2
*** cdt cvs genie on behalf of mkhouzam *** Bug 326137: Allow attach session to launch without specifying a project or binary. This change does not affect the API [*] LaunchUtils.java 1.12.2.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/LaunchUtils.java?root=Tools_Project&r1=1.12.2.2&r2=1.12.2.3 [*] GdbLaunchDelegate.java 1.16.2.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/GdbLaunchDelegate.java?root=Tools_Project&r1=1.16.2.2&r2=1.16.2.3