Bug 8317

Summary: Support GDB(DSF) Automatic remote debugging launcher
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Teodor Madan <teodor.madan>
Component: eclipse-pluginAssignee: Todor Minchev <todor.minchev>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.8   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Teodor Madan 2015-09-17 12:52:02 UTC
Debug configuration generated for Yocto Autotools/CMake project cannot be used with the default launcher from CDT 8.7., i.e. "CDT(DSF) Automatic Remote Debugging Launcher". It is missing the correct paths to .gdbinit and cross-gdb.

------------------------------
Steps to reproduce:
1. Setup Yocto ADT cross development profile
2. Create New C Project of type "Yocto Project ADT CMake Project"
3. Open debug configuration for the new project. Notice "Using Legacy Remote Create Process Launcher" in the footer of debug configuration near "Revert" and "Apply" buttons.
4. Check that "GDB Debugger" and "GDB command line" from "Debugger tab" do contain the correct paths to cross gdb and gdb init files
5. Change the launcher to "GDB(DSF) Automatic Remote Debugging Launcher" and verify the settings from "Debugger" tab to be the same as at step 4. Actually what happens is that gdb path and GDB command file are reset to default values.
------------------------------

Note that GDB(DSF) launcher has a lot more features that legacy launcher and should be preferred, also starting with CDT 9.0. the legacy launcher will be removed from CDT.
Comment 1 Teodor Madan 2015-09-17 13:08:32 UTC
I have a patch to fix this. What mailing list to be used for sending patches?
Comment 2 Teodor Madan 2015-09-21 06:49:17 UTC
Patch for master branch sent to yocto mailing list https://lists.yoctoproject.org/pipermail/yocto/2015-September/026505.html
Comment 3 Teodor Madan 2015-10-02 16:16:29 UTC
Is there any chances for the patch to be considered? 
At least with Mars release, the legacy (CDI) debug backend for GDB is not that stable compared to CDT(DSF) debug backend. And mostly unusable for a little more complex applications.

Manually changing/updating debug configurations created by yocto adt plugin each time I am switching the development profile is quite bothering to the point you would not use ADT eclipse assistance for debugging.

Thank you,
Teo
Comment 4 Todor Minchev 2015-10-02 16:21:14 UTC
Hello Teodor,

Sorry about the delay, we were I bit busy here. Yes, the patch will be tested and merged.
Comment 5 Todor Minchev 2015-10-02 17:47:01 UTC
Merged. Thank you.
Comment 6 Bogdan Alexandru Voiculescu 2015-10-14 13:00:41 UTC
New projects are using:
"Using GDB (DSF) Debug Process Launcher - "

Verified on 1d179ddcbd1983bf7bcfe98efdcbb186bdccca4f, branch mars/jethro and master


Added TC #1361 (will be updated after implementation of an automated test)