<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8317</bug_id>
          
          <creation_ts>2015-09-17 12:52:02 +0000</creation_ts>
          <short_desc>Support GDB(DSF) Automatic remote debugging launcher</short_desc>
          <delta_ts>2015-10-14 13:00:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Teodor Madan">teodor.madan</reporter>
          <assigned_to name="Todor Minchev">todor.minchev</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54200</commentid>
    <comment_count>0</comment_count>
    <who name="Teodor Madan">teodor.madan</who>
    <bug_when>2015-09-17 12:52:02 +0000</bug_when>
    <thetext>Debug configuration generated for Yocto Autotools/CMake project cannot be used with the default launcher from CDT 8.7., i.e. &quot;CDT(DSF) Automatic Remote Debugging Launcher&quot;. 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 &quot;Yocto Project ADT CMake Project&quot;
3. Open debug configuration for the new project. Notice &quot;Using Legacy Remote Create Process Launcher&quot; in the footer of debug configuration near &quot;Revert&quot; and &quot;Apply&quot; buttons.
4. Check that &quot;GDB Debugger&quot; and &quot;GDB command line&quot; from &quot;Debugger tab&quot; do contain the correct paths to cross gdb and gdb init files
5. Change the launcher to &quot;GDB(DSF) Automatic Remote Debugging Launcher&quot; and verify the settings from &quot;Debugger&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54202</commentid>
    <comment_count>1</comment_count>
    <who name="Teodor Madan">teodor.madan</who>
    <bug_when>2015-09-17 13:08:32 +0000</bug_when>
    <thetext>I have a patch to fix this. What mailing list to be used for sending patches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54347</commentid>
    <comment_count>2</comment_count>
    <who name="Teodor Madan">teodor.madan</who>
    <bug_when>2015-09-21 06:49:17 +0000</bug_when>
    <thetext>Patch for master branch sent to yocto mailing list https://lists.yoctoproject.org/pipermail/yocto/2015-September/026505.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54943</commentid>
    <comment_count>3</comment_count>
    <who name="Teodor Madan">teodor.madan</who>
    <bug_when>2015-10-02 16:16:29 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54944</commentid>
    <comment_count>4</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-10-02 16:21:14 +0000</bug_when>
    <thetext>Hello Teodor,

Sorry about the delay, we were I bit busy here. Yes, the patch will be tested and merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54946</commentid>
    <comment_count>5</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-10-02 17:47:01 +0000</bug_when>
    <thetext>Merged. Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55293</commentid>
    <comment_count>6</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-14 13:00:41 +0000</bug_when>
    <thetext>New projects are using:
&quot;Using GDB (DSF) Debug Process Launcher - &quot;

Verified on 1d179ddcbd1983bf7bcfe98efdcbb186bdccca4f, branch mars/jethro and master


Added TC #1361 (will be updated after implementation of an automated test)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>