| Summary: | [launch] [cdi] Need to set environment dir before sourcing init file. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> | ||||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | elaskavaia.cdt, pawel.1.piech, timblaktu | ||||||
| Version: | 7.0 | Flags: | elaskavaia.cdt:
review+
|
||||||
| Target Milestone: | 7.0.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Marc Khouzam
Created attachment 175520 [details]
Proposed fix
Here is the fix which does the -environment-cd first then source .gdbinit.
Committed to HEAD and 7_0 branch. Elena, since you are knee deep in the FinalLaunchSequence, can you review this simple change? CCing Elena for review *** cdt cvs genie on behalf of mkhouzam *** Bug 321259: Need to set environment dir before sourcing init file, so that we look for the init file in the right place [*] FinalLaunchSequence.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java?root=Tools_Project&r1=1.11&r2=1.12 [*] FinalLaunchSequence.java 1.11.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/FinalLaunchSequence.java?root=Tools_Project&r1=1.11&r2=1.11.2.1 Created attachment 175525 [details]
Fix for GDBJtagDSFFinalLaunchSequence
This is the same fix but for GDBJtagDSFFinalLaunchSequence, which has copied FinalLaunchSequence.
I've committed it to HEAD only since I can't test it myself and I don't feel safe putting it in 7_0
*** cdt cvs genie on behalf of mkhouzam *** Bug 321259: Need to set environment dir before sourcing init file, so that we look for the init file in the right place [*] GDBJtagDSFFinalLaunchSequence.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java?root=Tools_Project&r1=1.10&r2=1.11 reviewed - you just swapped two steps. Good catch about JTag I would have forgot about it. If fix FLS it would be change only in one place next time hopefully. I think it is safe to put on 7.0 (In reply to comment #9) > I think it is safe to put on 7.0 I got a mid-air collision asking if you though it was safe for 7_0 :-) Committed to 7_0. *** cdt cvs genie on behalf of mkhouzam *** Bug 321259: Need to set environment dir before sourcing init file to make sure we look for the init file in the right place. [*] GDBJtagDSFFinalLaunchSequence.java 1.10.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java?root=Tools_Project&r1=1.10&r2=1.10.2.1 |