<?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>10776</bug_id>
          
          <creation_ts>2016-12-08 10:24:38 +0000</creation_ts>
          <short_desc>Python Exception &lt;class &apos;NameError&apos;&gt; Installation error: gdb.execute_unwinders function is missing:</short_desc>
          <delta_ts>2017-12-06 17:30:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.2</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68922</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2016-12-08 10:24:38 +0000</bug_when>
    <thetext>I try to cross debug hello world.

On target:

+ gdbserver localhost:5555 hello_world.out.stripped
Process hello_world.out.stripped created; pid = 1292
Listening on port 5555

On host:

gdb_init script:
set sysroot /opt/poky/2.2/multi-v7-ml/beagle-bone-black/sysroots/armv7a-neon-poky-linux-gnueabi/
target remote 192.168.42.11:5555
b main

+ source /opt/poky/2.2/multi-v7-ml/beagle-bone-black/environment-setup-armv7a-neon-poky-linux-gnueabi

arm-poky-linux-gnueabi-gdb hello_world.out --command gdb_init
Python Exception &lt;class &apos;ImportError&apos;&gt; No module named &apos;imp&apos;: 
arm-poky-linux-gnueabi-gdb: warning: 
Could not load the Python gdb module from `/opt/poky/2.2/multi-v7-ml/beagle-bone-black/sysroots/x86_64-pokysdk-linux/usr/share/gdb/python&apos;.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.11.0.20160511-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;
and &quot;show warranty&quot; for details.
This GDB was configured as &quot;--host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi&quot;.
Type &quot;show configuration&quot; for configuration details.
For bug reporting instructions, please see:
&lt;http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
&lt;http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type &quot;help&quot;.
Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...
Reading symbols from hello_world.out...done.
Python Exception &lt;class &apos;NameError&apos;&gt; Installation error: gdb.execute_unwinders function is missing: 
0x4d1b0a40 in ?? ()
Breakpoint 1 at 0x10504: file hello_world.c, line 71.
(gdb) 


I think the SDK is incomplete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68943</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-12-08 15:53:35 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?id=eb937ee0a1ea1e695aa995c2d1a3561ba12335f8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71106</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-03-07 14:09:37 +0000</bug_when>
    <thetext>This seems to work now with the extensible SDK even without the proposed patch but the classic sdk seems to be broken (even with the patch applied).

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/gdb/gdb-cross-canadian.inc?h=morty</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>