Community
Participate
Working Groups
When doing a remote attach, DSF-GDB prompt the user for binary file path on the host. If I press Cancel, the launch gets messed up. Instead we should abort the entire attach.
(In reply to comment #0) > If I press Cancel, the launch gets messed up. Actually, the launch is not "messed up", but gdb does not have the binary and the debug session will not work very nicely. I think we should abort the entire attach.
Created attachment 196598 [details] Fix to cancel the attach when the user presses the Cancel button A simple check to see if the user pressed the Cancel button when being prompted for a binary. If so, we simply return gracefully, which cancels the attempt at attaching.
Committed to HEAD for user-friendliness. Pawel can you review?
*** cdt cvs genie on behalf of mkhouzam *** Bug 347163: Canceling a remote attach causes a bad debug session [*] GdbConnectCommand.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/actions/GdbConnectCommand.java?root=Tools_Project&r1=1.10&r2=1.11