<?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>2827</bug_id>
          
          <creation_ts>2012-07-24 14:25:46 +0000</creation_ts>
          <short_desc>Cross-debugging instructions not really effective</short_desc>
          <delta_ts>2013-03-21 15:53:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=b90497f139b1b6f7ab5510313eb297d5d7fb4e68</bug_file_loc>
          <status_whiteboard>21 March 2013 - Resolved/Fixed</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>23444</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-07-24 14:25:46 +0000</bug_when>
    <thetext>The Reference manual in section 5.2.2.1 suggests you can find gdb in the following location:

tmp/sysroots/&lt;host-arch&gt;/usr/bin/&lt;target-abi&gt;-gdb 

Unfortunately this is not suitable for running directly; one user reports that this results in the following error:

error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory.

I&apos;m not sure what needs to be changed here but it does seem like the instructions provided are too simplistic for how things work currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24803</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-09-04 17:01:30 +0000</bug_when>
    <thetext>After talking with Paul Eggleton on this bug he has suggested taking it over and seeing about fixing the issue.  Then, once the issue is fixed, I can document it in the manual.  For now, I could adjust the manual so that the discussion is more generic and does not suggest specific steps, that in this case, do not work.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24804</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-09-04 17:13:24 +0000</bug_when>
    <thetext>My suggestion for the moment would be to just comment out the bits that talk about running gdb directly from within tmp/sysroots; we can leave in the stuff about using meta-toolchain as I&apos;m pretty confident that should be working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30850</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-03-19 14:33:15 +0000</bug_when>
    <thetext>The underlying problem seems to be fixed now; I was able to run the produced gdb executable without any errors. There is only one difference now in that there is an extra subdirectory in the path i.e.:

tmp/sysroots/&lt;host-arch&gt;/usr/bin/&lt;target-platform&gt;/&lt;target-abi&gt;-gdb 

e.g. for n450 with Poky on a 64-bit host:

tmp/sysroots/x86_64-linux/usr/bin/core2-poky-linux/i586-poky-linux-gdb

Scott, could you add this back into the documentation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30862</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-03-19 17:07:54 +0000</bug_when>
    <thetext>Paul, 

Here is the updated section: http://www.yoctoproject.org/docs/1.4/dev-manual/dev-manual.html#platdev-gdb-remotedebug-launch-gdb-buildcross

Can you look this section over and &quot;okay&quot; it or suggest changes?

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30953</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-03-21 10:13:02 +0000</bug_when>
    <thetext>Great, thanks. One more thing though - the path in the example above this needs to be updated too. Here&apos;s an equivalent path you&apos;d get from building meta-toolchain currently for beagleboard and installing it into the default path:

/opt/poky/1.4/sysroots/i686-pokysdk-linux/usr/bin/armv7a-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30993</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-03-21 15:43:40 +0000</bug_when>
    <thetext>Paul, 

The change is in.  If you okay this I can close this bug.

http://www.yoctoproject.org/docs/1.4/dev-manual/dev-manual.html#platdev-gdb-remotedebug-launch-gdb-buildcross

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30997</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-03-21 15:53:52 +0000</bug_when>
    <thetext>Made some wording changes to the area right before the updated example.

Closing.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>