From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vb0-f52.google.com ([209.85.212.52]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttdr9-0005Wv-BQ for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:37:08 +0100 Received: by mail-vb0-f52.google.com with SMTP id ez10so1343648vbb.25 for ; Fri, 11 Jan 2013 04:37:01 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130111123054.GB11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> Date: Fri, 11 Jan 2013 14:37:01 +0200 Message-ID: From: Ruben Louw Subject: Re: [ptxdist] Gdb debugging helper [PATCH] Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1229089089==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1229089089== Content-Type: multipart/alternative; boundary=20cf307f30f852818104d3028dd3 --20cf307f30f852818104d3028dd3 Content-Type: text/plain; charset=ISO-8859-1 Hi Tim I'm trying to get my mind wrapped around this. I ran your command and this is what it outputs: Dynamic section at offset 0x3f1df8 contains 25 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libncurses.so.5] 0x0000000000000001 (NEEDED) Shared library: [libtinfo.so.5] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000f (RPATH) Library rpath: [/home/orbit/OSELAS.Toolchain-2012.12.0/platform-arm-v4t-linux-gnueabi-gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/sysroot-host/lib:/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages] 0x000000000000000c (INIT) 0x4046b0 0x000000000000000d (FINI) 0x6a0218 0x000000006ffffef5 (GNU_HASH) 0x400298 0x0000000000000005 (STRTAB) 0x401e88 0x0000000000000006 (SYMTAB) 0x400388 0x000000000000000a (STRSZ) 2803 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x9f1fe8 0x0000000000000002 (PLTRELSZ) 6312 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x402e08 0x0000000000000007 (RELA) 0x402ca0 0x0000000000000008 (RELASZ) 360 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x402bc0 0x000000006fffffff (VERNEEDNUM) 3 0x000000006ffffff0 (VERSYM) 0x40297c 0x0000000000000000 (NULL) 0x0 its not linking to Python right? if i then install python, do i have to make the link myself? Thanks Ruben On Fri, Jan 11, 2013 at 2:30 PM, Michael Olbrich wrote: > Hi, > > On Fri, Jan 11, 2013 at 12:57:45PM +0200, Ruben Louw wrote: > > Thanks for the advice. Just to be sure. Python was not enabled (default) > > then as the helper? Could it be I was correct? So then I need to rebuild > > the toolchain, with Python enabled (example below)? Or is there a quick > > hack for me to try without rebuilding the toolchain, cos then I have to > > rebuild everything and I just want to quick test if this is the solution. > > > > Do I understand this correctly, or am I way off? > > The default is autodetect. Run 'readelf -d > /path/to/toolchain/bin/-gdb' and see if it links to > libpython2.7.so.1.0 or something like that. > > If not, then you need to istall python-dev or something like that. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --20cf307f30f852818104d3028dd3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Tim

I'm trying to get my mind wrapped around this.

I r= an your command and this is what it outputs:

Dynamic section at offs= et 0x3f1df8 contains 25 entries:
=A0 Tag=A0=A0=A0=A0=A0=A0=A0 Type=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Name/Val= ue
=A00x0000000000000001 (NEEDED)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Shared l= ibrary: [libdl.so.2]
=A00x0000000000000001 (NEEDED)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 Shared library: [libncurses.so.5]
=A00x0000000000000001 = (NEEDED)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Shared library: [libtinfo.so.5= ]
=A00x0000000000000001 (NEEDED)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Shared l= ibrary: [libm.so.6]
=A00x0000000000000001 (NEEDED)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 Shared library: [libc.so.6]
=A00x000000000000000f (RPATH= )=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Library rpath: [/home/orbit/OSELAS= .Toolchain-2012.12.0/platform-arm-v4t-linux-gnueabi-gcc-4.7.2-glibc-2.16.0-= binutils-2.22-kernel-3.6-sanitized/sysroot-host/lib:/this/is/a/long/path/to= /make/host/tools/relocateable/with/chrpath/when/using/dev/packages]
=A00x000000000000000c (INIT)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0x40= 46b0
=A00x000000000000000d (FINI)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 0x6a0218
=A00x000000006ffffef5 (GNU_HASH)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 0x400298
=A00x0000000000000005 (STRTAB)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 0x401e88
=A00x0000000000000006 (SYMTAB)=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0 0x400388
=A00x000000000000000a (STRSZ)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 2803 (= bytes)
=A00x000000000000000b (SYMENT)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 24 (bytes)
=A00x0000000000000015 (DEBUG)=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0x0
=A00x0000000000000003 (PLTGOT)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0x9f1fe8
=A00x0000000000000002 (PLTRELSZ)=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 6312 (bytes)
=A00x0000000000000014 (PLTREL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 RELA
= =A00x0000000000000017 (JMPREL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0x402e08=
=A00x0000000000000007 (RELA)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0x402ca0
=A00x0000000000000008 (RELASZ)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 360 (bytes)
=A00x0000000000000009 (RELAENT)=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 24 (bytes)
=A00x000000006ffffffe (VERNEED)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0x402bc0=A00x000000006fffffff (VERNEEDNUM)=A0=A0=A0=A0=A0=A0=A0=A0 3
=A00x0000= 00006ffffff0 (VERSYM)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0x40297c
=A00x= 0000000000000000 (NULL)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0x0
its not linking to Python right? if i then install python, do i have to m= ake the link myself?

Thanks

Ruben

On Fri, Jan 11, 2= 013 at 2:30 PM, Michael Olbrich <m.olbrich@pengutronix.de> wrote:
Hi,

On Fri, Jan 11, 2013 at 12:57:45PM +0200, Ruben Louw wrote:
> Thanks for the advice. Just to be sure. Python was not enabled (defaul= t)
> then as the helper? Could it be I was correct? So then I need to rebui= ld
> the toolchain, with Python enabled (example below)? Or is there a quic= k
> hack for me to try without rebuilding the toolchain, cos then I have t= o
> rebuild everything and I just want to quick test if this is the soluti= on.
>
> Do I understand this correctly, or am I way off?

The default is autodetect. Run 'readelf -d
/path/to/toolchain/bin/<prefix>-gdb' and see if it links to
libpython2.7.so.1.0 or something like that.

If not, then you need to istall python-dev or something like that.

Michael

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.pengutronix.de/ = =A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0 =A0|
Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-206917-555= 5 |

--
ptxdist mailing list
ptxdist@pengutronix.de

--20cf307f30f852818104d3028dd3-- --===============1229089089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1229089089==--