<?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>519</bug_id>
          
          <creation_ts>2010-11-02 11:23:54 +0000</creation_ts>
          <short_desc>debug configuration should be able to locate the corrent binary</short_desc>
          <delta_ts>2011-03-04 20:54:35 +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.0</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>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessica">jessica.zhang</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>elizabeth.flanagan</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10826</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-11-02 11:23:54 +0000</bug_when>
    <thetext>Create a new C++ project sudoku, then import src code from sudoku-savant project, configure and compile then open Debug configuration, under &quot;c/c++ application&quot; it lists src/sudoku, but actually it should be /src/sudoku-savant, if you click &quot;Search Project&quot; the correct binary is listed there.  The correct binary should be automatically listed under &quot;C/C++ Application&quot;...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11526</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-01-18 18:59:50 +0000</bug_when>
    <thetext>There is two way to set program binary name which is to be debugged/launched, one way is to set the attribute ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME of the ILaunchConfigurationWorkingCopy, another way is to let the CDT choose its default value which is the first binary the project generates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11853</commentid>
    <comment_count>2</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-02-17 23:20:17 +0000</bug_when>
    <thetext>Implementation postponed to either M4 1.0 or 1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12187</commentid>
    <comment_count>3</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-01 01:18:54 +0000</bug_when>
    <thetext>In this scenario, the source code is imported after the user creates an empty project, so we don&apos;t have any information about which binary should be listed when we create the debug configuration during the project creation. This prevents us from setting the correct value to ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME. 

CDT will only choose the default value automatically if the user create the debug configuration through GUI. Since we create the debug configuration programmatically. 

The bottom line is to not mis-configure the debug configuration, so I think it&apos;d be better to leave the ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME empty, ad let the user to choose it from the &quot;Search Project&quot; button in the GUI.

Any comment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12198</commentid>
    <comment_count>4</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-03-01 09:51:16 +0000</bug_when>
    <thetext>Your suggestion makes sense, but can we only leave ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME
empty for the import project case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12281</commentid>
    <comment_count>5</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-03 22:53:50 +0000</bug_when>
    <thetext>Fixed in commit 83ab76feed4cb3c860037de0258c595efb91f1b5.

Added a new project nature of YoctoSDKEmptyNature, and
not set the ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME if this
nature is added into a project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12300</commentid>
    <comment_count>6</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-03-04 20:54:35 +0000</bug_when>
    <thetext>Verified against latest plugin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>