From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-f175.google.com ([209.85.220.175]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TtdwQ-0005yX-2K for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:42:35 +0100 Received: by mail-vc0-f175.google.com with SMTP id fy7so1384508vcb.34 for ; Fri, 11 Jan 2013 04:42:27 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> Date: Fri, 11 Jan 2013 14:42:27 +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="===============0019769859==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0019769859== Content-Type: multipart/alternative; boundary=047d7bf0ef28c80ac804d302a00e --047d7bf0ef28c80ac804d302a00e Content-Type: text/plain; charset=ISO-8859-1 sorry, I meant Michael. On Fri, Jan 11, 2013 at 2:37 PM, Ruben Louw wrote: > 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 >> > > --047d7bf0ef28c80ac804d302a00e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable sorry, I meant Michael.

On Fri, Jan 11, 2= 013 at 2:37 PM, Ruben Louw <lfxciii@gmail.com> wrote:
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, 2013 at 2:30 PM, Michael Olbrich <m.olbric= h@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-5555 |

--
ptxdist mailing list
ptxdist@pengutr= onix.de


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