From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.weihenstephan.org ([80.190.177.12]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteKf-0007p9-SI for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:07:39 +0100 Received: from isonoe.hi.pengutronix.de (port-212-202-120-50.static.qsc.de [212.202.120.50]) by www.weihenstephan.org (Postfix) with ESMTPSA id D83C4481E35 for ; Fri, 11 Jan 2013 14:05:22 +0100 (CET) Resent-To: ptxdist@pengutronix.de Resent-Message-ID: <201301111406.58301.lfxciii@gmail.com> MIME-Version: 1.0 In-Reply-To: <201301111345.08076.jbe@pengutronix.de> References: <9773402.Yor6vSR5Wv@dabox> <201301111345.08076.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 14:57:35 +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="===============0934348228==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert --===============0934348228== Content-Type: multipart/alternative; boundary=047d7bf0ef28e868d704d302d673 --047d7bf0ef28e868d704d302d673 Content-Type: text/plain; charset=ISO-8859-1 Hi Juergen How do I partially rebuild the cross-gdb package? it keeps downloading stuff. Should i remove the previous toolchain before rebuilding it, if so, how do i remove it? I'm getting there :) Thanks Ruben On Fri, Jan 11, 2013 at 2:45 PM, Juergen Beisert wrote: > Hi Ruben, > > Ruben Louw wrote: > > I currently use 2012.12.0. I hd a look in cross-gdb.make, and the > > --enable-python line is not there. So I added it. Do i have to rebuild > the > > toolchain after adding this line? > > Maybe you can try with a "ptxdist clean cross-gdb; ptxdist go" (=partially > rebuild). > If this does not work, you must rebuild the whole toolchain. > > Regards > Juergen > > -- > Pengutronix e.K. | Juergen Beisert > | > Linux Solutions for Science and Industry | http://www.pengutronix.de/ | > --047d7bf0ef28e868d704d302d673 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Juergen

How do I partially rebuild the cross-gdb package? it keep= s downloading stuff. Should i remove the previous toolchain before rebuildi= ng it, if so, how do i remove it?

I'm getting there :)

Thanks

Ruben

On Fri, Jan 11, 2013 = at 2:45 PM, Juergen Beisert <jbe@pengutronix.de> wrote:
=
Hi Ruben,

Ruben Louw wrote:
> I currently use 2012.12.0. I hd a look in cross-gdb.make, and the
> --enable-python line is not there. So I added it. Do i have to rebuild= the
> toolchain after adding this line?

Maybe you can try with a "ptxdist clean cross-gdb; ptxdist go&qu= ot; (=3Dpartially
rebuild).
If this does not work, you must rebuild the whole toolchain.

Regards
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|

--047d7bf0ef28e868d704d302d673-- --===============0934348228== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0934348228==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.weihenstephan.org ([80.190.177.12]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttar3-0002Ic-R8 for ptxdist@pengutronix.de; Fri, 11 Jan 2013 10:24:50 +0100 Received: from isonoe.hi.pengutronix.de (port-212-202-120-50.static.qsc.de [212.202.120.50]) by www.weihenstephan.org (Postfix) with ESMTPSA id 9F457480E41 for ; Fri, 11 Jan 2013 10:22:34 +0100 (CET) Resent-To: ptxdist@pengutronix.de Resent-Message-ID: <201301111024.03264.lfxciii@gmail.com> MIME-Version: 1.0 In-Reply-To: <201301110940.10949.jbe@pengutronix.de> References: <201301110909.59266.jbe@pengutronix.de> <201301110940.10949.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 10:47:07 +0200 Message-ID: From: Ruben Louw Subject: Re: [ptxdist] Gdb debugging helper 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="===============1991562983==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert --===============1991562983== Content-Type: multipart/alternative; boundary=f46d0435c04c2f158c04d2ff57fd --f46d0435c04c2f158c04d2ff57fd Content-Type: text/plain; charset=ISO-8859-1 hmm. makes sense to be on host. But I think this should be included when build the toolchain or something, I'm only speculating. but i'll play around with it, hopefully smoke does'nt come out anywhere. Cheers! Ruben On Fri, Jan 11, 2013 at 10:40 AM, Juergen Beisert wrote: > Hi Ruben, > > Ruben Louw wrote: > > > ("Computer! Find the bugs in my app right now!"?) ;) > > > > hehehe, I wish it was this simple. > > Maybe we should give it a try :)) > > > The debugging helper enables the viewing of complex objects in the IDE > (Qt > > Creator in my case). so when gdbserver is started on the target, the IDE > > then starts gdb on the host and the to communicate with each other. As > soon > > as a break point is reached, the variable types and values are displayed > > using a debug helper. from what I could gather, this helper is either > > python or normal c++. > > Hmm, then these helpers should run on your host. So, PTXdist and your > target's > gdbserver are not involved. When these helpers are using the gdb to collect > the information they need, I would guess it should work out of the box. > > >> Please keep always in mind the difference between your target and your > >> host. Most of the time, only the small gdbserver runs >on your target > and > >> the main full blown/featured debugger on your host. > > > > this is also how I understand it, all the helper does is "Indetify" the > > types and its values, then you dont have to guess what the content of the > > variable or objects are. > > I know this behaviour from DDD where you also can click through linked > lists > and so on. Very comfortable. > > Happy hacking. > > Regards, > Juergen > > -- > Pengutronix e.K. | Juergen Beisert > | > Linux Solutions for Science and Industry | http://www.pengutronix.de/ | > --f46d0435c04c2f158c04d2ff57fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hmm. makes sense to be on host. But I think this should be included when bu= ild the toolchain or something, I'm only speculating. but i'll play= around with it, hopefully smoke does'nt come out anywhere.

Chee= rs!

Ruben

On Fri, Jan 11, 2013 at 10:40 A= M, Juergen Beisert <jbe@pengutronix.de> wrote:
Hi Ruben,

Ruben Louw wrote:
> > ("Computer! Find the bugs in my app = right now!"?) ;)
>
> hehehe, I wish it was this simple.

Maybe we should give it a try :))

> The debugging helper enables the viewing of complex objects in the IDE= (Qt
> Creator in my case). so when gdbserver is started on the target, the I= DE
> then starts gdb on the host and the to communicate with each other. As= soon
> as a break point is reached, the variable types and values are display= ed
> using a debug helper. from what I could gather, this helper is either<= br> > python or normal c++.

Hmm, then these helpers should run on your host. So, PTXdist and your= target's
gdbserver are not involved. When these helpers are using the gdb to collect=
the information they need, I would guess it should work out of the box.

>> Please keep always in mind the difference between your target and = your
>> host. Most of the time, only the small gdbserver runs >on your = target and
>> the main full blown/featured debugger on your host.
>
> this is also how I understand it, all the helper does is "Indetif= y" the
> types and its values, then you dont have to guess what the content of = the
> variable or objects are.

I know this behaviour from DDD where you also can click through linke= d lists
and so on. Very comfortable.

Happy hacking.

Regards,
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|

--f46d0435c04c2f158c04d2ff57fd-- --===============1991562983== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1991562983==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteV5-0000Nt-3W for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:18:23 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TteV5-0003Zr-2f for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:18:23 +0100 Date: Fri, 11 Jan 2013 14:18:23 +0100 From: Michael Olbrich Message-ID: <20130111131823.GD11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> <20130111130036.GC11738@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Fri, Jan 11, 2013 at 03:02:50PM +0200, Ruben Louw wrote: > Thats what you meant by it installs it if it can find the headers, right? > so if i have python-dev installed on my host, and python is enabled in > cross-gdb.make, then it will link python and all that, right? Actually, you don't need to modify cross-gdb.make. The rest is correct. 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteDs-0007KG-Nw for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:00:36 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TteDs-0003Xw-Ne for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:00:36 +0100 Date: Fri, 11 Jan 2013 14:00:36 +0100 From: Michael Olbrich Message-ID: <20130111130036.GC11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Fri, Jan 11, 2013 at 02:37:01PM +0200, Ruben Louw wrote: > 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] [...] > its not linking to Python right? Correct. > if i then install python, do i have to > make the link myself? 1. Install whatever packages provides Python.h in your distro (python-dev in Debian). 2. Rebuild the toolchain, or just part of if as Juergen suggested. Python support is automatically enabled if found. 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vb0-f47.google.com ([209.85.212.47]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteXA-0000k6-75 for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:20:34 +0100 Received: by mail-vb0-f47.google.com with SMTP id e21so1389515vbm.20 for ; Fri, 11 Jan 2013 05:20:26 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130111131823.GD11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> <20130111130036.GC11738@pengutronix.de> <20130111131823.GD11738@pengutronix.de> Date: Fri, 11 Jan 2013 15:20:26 +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="===============1136868810==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1136868810== Content-Type: multipart/alternative; boundary=f46d042f9d4896a8d504d3032884 --f46d042f9d4896a8d504d3032884 Content-Type: text/plain; charset=ISO-8859-1 So all I have to do is just install python-dev then right? it'll then pick everything up automatically. On Fri, Jan 11, 2013 at 3:18 PM, Michael Olbrich wrote: > Hi, > > On Fri, Jan 11, 2013 at 03:02:50PM +0200, Ruben Louw wrote: > > Thats what you meant by it installs it if it can find the headers, right? > > so if i have python-dev installed on my host, and python is enabled in > > cross-gdb.make, then it will link python and all that, right? > > Actually, you don't need to modify cross-gdb.make. The rest is correct. > > 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 > --f46d042f9d4896a8d504d3032884 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So all I have to do is just install python-dev then right? it'll then p= ick everything up automatically.


--f46d042f9d4896a8d504d3032884-- --===============1136868810== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1136868810==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-f180.google.com ([209.85.220.180]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TtcJq-0007tZ-Kl for ptxdist@pengutronix.de; Fri, 11 Jan 2013 11:58:40 +0100 Received: by mail-vc0-f180.google.com with SMTP id p16so1282966vcq.39 for ; Fri, 11 Jan 2013 02:58:32 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130111094206.GA11738@pengutronix.de> References: <201301110909.59266.jbe@pengutronix.de> <201301110940.10949.jbe@pengutronix.de> <20130111094206.GA11738@pengutronix.de> Date: Fri, 11 Jan 2013 12:58:32 +0200 Message-ID: From: Ruben Louw Subject: Re: [ptxdist] Gdb debugging helper 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="===============1735439405==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1735439405== Content-Type: multipart/alternative; boundary=f46d0435c04c27573904d3012d40 --f46d0435c04c27573904d3012d40 Content-Type: text/plain; charset=ISO-8859-1 Hi Michael I'd have to explicitly add Python to be built, or is it enabled by default? Thanks On Fri, Jan 11, 2013 at 11:42 AM, Michael Olbrich wrote: > Hi, > > On Fri, Jan 11, 2013 at 10:47:07AM +0200, Ruben Louw wrote: > > hmm. makes sense to be on host. But I think this should be included when > > build the toolchain or something, > > The gdb in OSELAT.Toolchain is built with python support if the Python > headers are found. > > 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 > --f46d0435c04c27573904d3012d40 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Michael

I'd have to explicitly add Python to be built, or is = it enabled by default?

Thanks

On F= ri, Jan 11, 2013 at 11:42 AM, Michael Olbrich <m.olbrich@pengutroni= x.de> wrote:
Hi,

On Fri, Jan 11, 2013 at 10:47:07AM +0200, Ruben Louw wrote:
> hmm. makes sense to be on host. But I think this should be included wh= en
> build the toolchain or something,

The gdb in OSELAT.Toolchain is built with python support if the Pytho= n
headers are found.

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

--f46d0435c04c27573904d3012d40-- --===============1735439405== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1735439405==-- 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==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.weihenstephan.org ([80.190.177.12]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Tta21-000814-WE for ptxdist@pengutronix.de; Fri, 11 Jan 2013 09:32:06 +0100 Received: from isonoe.hi.pengutronix.de (port-212-202-120-50.static.qsc.de [212.202.120.50]) by www.weihenstephan.org (Postfix) with ESMTPSA id F25C9480A30 for ; Fri, 11 Jan 2013 09:29:50 +0100 (CET) Resent-To: ptxdist@pengutronix.de Resent-Message-ID: <201301110931.18170.lfxciii@gmail.com> MIME-Version: 1.0 In-Reply-To: <201301110909.59266.jbe@pengutronix.de> References: <201301110909.59266.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 10:22:30 +0200 Message-ID: From: Ruben Louw Subject: Re: [ptxdist] Gdb debugging helper 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="===============0948292389==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert --===============0948292389== Content-Type: multipart/alternative; boundary=14dae9cfc8501f4d2204d2feff02 --14dae9cfc8501f4d2204d2feff02 Content-Type: text/plain; charset=ISO-8859-1 Hi Juergen > ("Computer! Find the bugs in my app right now!"?) ;) hehehe, I wish it was this simple. The debugging helper enables the viewing of complex objects in the IDE (Qt Creator in my case). so when gdbserver is started on the target, the IDE then starts gdb on the host and the to communicate with each other. As soon as a break point is reached, the variable types and values are displayed using a debug helper. from what I could gather, this helper is either python or normal c++. > Please keep always in mind the difference between your target and your host. Most of the time, only the small gdbserver runs >on your target and the main full blown/featured debugger on your host. this is also how I understand it, all the helper does is "Indetify" the types and its values, then you dont have to guess what the content of the variable or objects are. Maybe I'm missing something, but this makes sense to me. :) Thanks for the reply and any further help. Regards Ruben On Fri, Jan 11, 2013 at 10:09 AM, Juergen Beisert wrote: > Hi Ruben, > > Ruben Louw wrote: > > Does anyone know which debugging helper gdb uses? Could it be python? > > What is a 'debugging helper'??? .oO("Computer! Find the bugs in my app > right > now!"?) ;) > > > if so, I'd probably have to add it when I build my BSP, is this right? > > Please keep always in mind the difference between your target and your > host. > Most of the time, only the small gdbserver runs on your target and the main > full blown/featured debugger on your host. > > Regards, > Juergen > > -- > Pengutronix e.K. | Juergen Beisert > | > Linux Solutions for Science and Industry | http://www.pengutronix.de/ | > --14dae9cfc8501f4d2204d2feff02 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Juergen

> ("Computer! Find the bugs in my app right now!"?) ;)

hehehe, I wish it was this simple.

The debug= ging helper enables the viewing of complex objects in the IDE (Qt Creator i= n my case). so when gdbserver is started on the target, the IDE then starts= gdb on the host and the to communicate with each other. As soon as a break= point is reached, the variable types and values are displayed using a debu= g helper. from what I could gather, this helper is either python or normal = c++.

> Please keep always in mind the difference between your target and = your host. Most of the time, only the small gdbserver runs >on your targ= et and the main full blown/featured debugger on your host.

this is a= lso how I understand it, all the helper does is "Indetify" the ty= pes and its values, then you dont have to guess what the content of the var= iable or objects are.

Maybe I'm missing something, but this makes sense to me. :)

= Thanks for the reply and any further help.

Regards

Ruben
<= br>
On Fri, Jan 11, 2013 at 10:09 AM, Juergen= Beisert <jbe@pengutronix.de> wrote:
Hi Ruben,

Ruben Louw wrote:
> Does anyone know which debugging helper gdb uses? Could it be python?<= br>
What is a 'debugging helper'??? .oO("Computer! Find the = bugs in my app right
now!"?) ;)

> if so, I'd probably have to add it when I build my BSP, is this ri= ght?

Please keep always in mind the difference between your target and you= r host.
Most of the time, only the small gdbserver runs on your target and the main=
full blown/featured debugger on your host.

Regards,
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|

--14dae9cfc8501f4d2204d2feff02-- --===============0948292389== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0948292389==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttb7m-0003bW-Uw for ptxdist@pengutronix.de; Fri, 11 Jan 2013 10:42:06 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1Ttb7m-00035D-SU for ptxdist@pengutronix.de; Fri, 11 Jan 2013 10:42:06 +0100 Date: Fri, 11 Jan 2013 10:42:06 +0100 From: Michael Olbrich Message-ID: <20130111094206.GA11738@pengutronix.de> References: <201301110909.59266.jbe@pengutronix.de> <201301110940.10949.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Gdb debugging helper Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Fri, Jan 11, 2013 at 10:47:07AM +0200, Ruben Louw wrote: > hmm. makes sense to be on host. But I think this should be included when > build the toolchain or something, The gdb in OSELAT.Toolchain is built with python support if the Python headers are found. 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 13:45:07 +0100 References: <9773402.Yor6vSR5Wv@dabox> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301111345.08076.jbe@pengutronix.de> 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Hi Ruben, Ruben Louw wrote: > I currently use 2012.12.0. I hd a look in cross-gdb.make, and the > --enable-python line is not there. So I added it. Do i have to rebuild the > toolchain after adding this line? Maybe you can try with a "ptxdist clean cross-gdb; ptxdist go" (=partially rebuild). If this does not work, you must rebuild the whole toolchain. Regards Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vb0-f49.google.com ([209.85.212.49]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttdkh-0004tO-45 for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:30:27 +0100 Received: by mail-vb0-f49.google.com with SMTP id s24so886662vbi.36 for ; Fri, 11 Jan 2013 04:30:21 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <9773402.Yor6vSR5Wv@dabox> References: <13317004.u3s2pIUGrD@dabox> <9773402.Yor6vSR5Wv@dabox> Date: Fri, 11 Jan 2013 14:30:20 +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="===============1781075061==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1781075061== Content-Type: multipart/alternative; boundary=f46d0435c04c7607ad04d3027571 --f46d0435c04c7607ad04d3027571 Content-Type: text/plain; charset=ISO-8859-1 Hi Tim I currently use 2012.12.0. I hd a look in cross-gdb.make, and the --enable-python line is not there. So I added it. Do i have to rebuild the toolchain after adding this line? Thank you Ruben On Fri, Jan 11, 2013 at 2:27 PM, Tim Sander wrote: > Hi Ruben > > 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. > It was not enabled for the older toolchains (2011.03.1) and is is enabled > for > 2011.11.3. Just take a look at rules/cross-gdb.make > > Best regards > Tim > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --f46d0435c04c7607ad04d3027571 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Tim

I currently use 2012.12.0. I hd a look in cross-gdb.make, and= the --enable-python line is not there. So I added it. Do i have to rebuild= the toolchain after adding this line?

Thank you

Ruben

On Fri, Jan 11, 2013 at 2:27 PM, Tim Sander = <tim@krieglstein.org> wrote:
Hi Ruben
> Thanks for the advice. Just to be sure. Python was n= ot enabled (default)
> 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.
It was not enabled for the older toolchains (2011.03.1) and is is ena= bled for
2011.11.3. Just take a look at rules/cross-gdb.make

Best regards
Tim

--
ptxdist mailing list
ptxdist@pengutronix.de

--f46d0435c04c7607ad04d3027571-- --===============1781075061== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1781075061==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: References: <201301111412.37126.jbe@pengutronix.de> <201301111425.45559.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 15:39:13 +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="===============0837728419==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert Cc: ptxdist@pengutronix.de --===============0837728419== Content-Type: multipart/alternative; boundary=14dae9cfc850cd432f04d3036b1b --14dae9cfc850cd432f04d3036b1b Content-Type: text/plain; charset=ISO-8859-1 Hi Tim >I have python-dev installed, nevertheless i had to add --enable-python, at l >last in the 2011.03.1 toolchain, and probably i have added this line also to >the 2011.11.3 toolchain after i add it to my git repo... >So with ubuntu 12.04 64bit i had to add this enable-python flag. Maybe >autodetection is not working correctly? Just out of interest, what language and ide are you using for your development? Regards Ruben On Fri, Jan 11, 2013 at 3:33 PM, Ruben Louw wrote: > Appologies for doing it again. keep forgetting, crap. > > Will setup a directory like that, or i wont just remove stuff. > > Thanks > > > On Fri, Jan 11, 2013 at 3:25 PM, Juergen Beisert wrote: > >> Hi Ruben, >> >> please don't forget the mailing list :) >> >> Ruben Louw wrote: >> > thanks Juergen >> >> You're welcome. >> >> > That was my problem, I removed the already built Toolchain that was in >> my >> > home directory. Now it wants to download everything. >> >> Setup PTXdist to use a special directory for the downloaded archives. >> Then the >> download happens only once. >> >> > Oh well, mental note to self, dont just remove stuff. I walk seems like >> a >> > great idea, would rather buy you, Tim and Michael a beer ;) >> > >> > Thanks for all your help guys. >> >> Regards >> Juergen >> >> -- >> Pengutronix e.K. | Juergen Beisert >> | >> Linux Solutions for Science and Industry | >> http://www.pengutronix.de/ | >> > > --14dae9cfc850cd432f04d3036b1b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Tim

>I have python-dev installed, nevertheless i had to add --= enable-python, at l
>last in the 2011.03.1 toolchain, and probably i have added this line al= so to
>the 2011.11.3 toolchain after i add it to my git repo...

>So with ubuntu 12.04 64bit i had to add this enable-python flag. Maybe<= br>>autodetection is not working correctly?

Just out of interest,= what language and ide are you using for your development?

Regards
Ruben


On Fri, Jan 11, 2013 at 3:3= 3 PM, Ruben Louw <lfxciii@gmail.com> wrote:
Appologies for doing it again. keep forgetting, crap.

Will setup a d= irectory like that, or i wont just remove stuff.

Thanks


On Fri, Jan 1= 1, 2013 at 3:25 PM, Juergen Beisert <jbe@pengutronix.de> wr= ote:
Hi Ruben,

please don't forget the mailing list :)

Ruben Louw wrote:
> thanks Juergen

You're welcome.

> That was my problem, I removed the already built Toolchain that was in= my
> home directory. Now it wants to download everything.

Setup PTXdist to use a special directory for the downloaded archives.= Then the
download happens only once.

> Oh well, mental note to self, dont just remove stuff. I walk seems lik= e a
> great idea, would rather buy you, Tim and Michael a beer ;)
>
> Thanks for all your help guys.

Regards
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|


--14dae9cfc850cd432f04d3036b1b-- --===============0837728419== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0837728419==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 14:49:09 +0100 References: <201301111425.45559.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301111449.10011.jbe@pengutronix.de> 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Ruben Louw wrote: > Appologies for doing it again. keep forgetting, crap. :) jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 14:12:36 +0100 References: <201301111345.08076.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301111412.37126.jbe@pengutronix.de> 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Hi Ruben, Ruben Louw wrote: > How do I partially rebuild the cross-gdb package? With the commands I mentioned. If you have kept your already built OSELAS.Toolchain-2012.12.0 build directory, with "ptxdist clean ; ptxdist go" you can force the re-build of the package . > it keeps downloading stuff. ??? > Should i remove the previous toolchain before rebuilding it, if so, > how do i remove it? If you really want to start from scratch: ~$ rm -rf /opt/OSELAS.Toolchain-2012.12.0/ ~/OSELAS.Toolchain-2012.12.0$ ptxdist clean ~/OSELAS.Toolchain-2012.12.0$ ptxdist go And then go for a walk. :) Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de 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==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lvps176-28-13-145.dedicated.hosteurope.de ([176.28.13.145]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttb84-0003cq-SP for ptxdist@pengutronix.de; Fri, 11 Jan 2013 10:42:25 +0100 Received: from dabox.localnet (unknown [62.159.134.146]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id 4D30EA8A407B for ; Fri, 11 Jan 2013 10:42:24 +0100 (CET) From: Tim Sander Date: Fri, 11 Jan 2013 10:42:19 +0100 Message-ID: <13317004.u3s2pIUGrD@dabox> In-Reply-To: References: <201301110940.10949.jbe@pengutronix.de> MIME-Version: 1.0 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi Ruben Am Freitag, 11. Januar 2013, 10:47:07 schrieb Ruben Louw: > hmm. makes sense to be on host. But I think this should be included when > build the toolchain or something, I'm only speculating. but i'll play > around with it, hopefully smoke does'nt come out anywhere. Its the Toolchain. You need the following change in the toolchain. I would suggest to have this enabled by default, while we are at it. Best regards Tim diff --git a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make b/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make index 727de25..8c1ffdc 100644 --- a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make +++ b/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make @@ -63,6 +63,7 @@ CROSS_GDB_AUTOCONF := \ $(PTXCONF_TOOLCHAIN_CONFIG_SYSROOT) \ \ --disable-werror \ + --enable-python \ --enable-tui $(STATEDIR)/cross-gdb.prepare: -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-f174.google.com ([209.85.220.174]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteYW-0000xZ-Ns for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:21:57 +0100 Received: by mail-vc0-f174.google.com with SMTP id d16so1403677vcd.5 for ; Fri, 11 Jan 2013 05:21:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> <20130111130036.GC11738@pengutronix.de> <20130111131823.GD11738@pengutronix.de> Date: Fri, 11 Jan 2013 15:21:50 +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="===============0638437220==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0638437220== Content-Type: multipart/alternative; boundary=f46d042f9d48a3b45f04d3032de4 --f46d042f9d48a3b45f04d3032de4 Content-Type: text/plain; charset=ISO-8859-1 Nevermind my reply, I'll rebuild. Thanks guys On Fri, Jan 11, 2013 at 3:20 PM, Ruben Louw wrote: > So all I have to do is just install python-dev then right? it'll then pick > everything up automatically. > > > On Fri, Jan 11, 2013 at 3:18 PM, Michael Olbrich > wrote: > >> Hi, >> >> On Fri, Jan 11, 2013 at 03:02:50PM +0200, Ruben Louw wrote: >> > Thats what you meant by it installs it if it can find the headers, >> right? >> > so if i have python-dev installed on my host, and python is enabled in >> > cross-gdb.make, then it will link python and all that, right? >> >> Actually, you don't need to modify cross-gdb.make. The rest is correct. >> >> 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 >> > > --f46d042f9d48a3b45f04d3032de4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nevermind my reply, I'll rebuild.

Thanks guys

On Fri, Jan 11, 2013 at 3:20 PM, Ruben Louw <lfxciii@gmai= l.com> wrote:
So all I have to do is just install python-d= ev then right? it'll then pick everything up automatically.


On Fri, Jan 11, 2013 a= t 3:18 PM, Michael Olbrich <m.olbrich@pengutronix.de>= wrote:
Hi,

On Fri, Jan 11, 2013 at 03:02:50PM +0200, Ruben Louw wrote:
> Thats what you meant by it installs it if it can find the headers, rig= ht?
> so if i have python-dev installed on my host, and python is enabled in=
> cross-gdb.make, then it will link python and all that, right?

Actually, you don't need to modify cross-gdb.make. The rest is co= rrect.

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


--f46d042f9d48a3b45f04d3032de4-- --===============0638437220== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0638437220==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vb0-f51.google.com ([209.85.212.51]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TtZ4p-0004HW-7k for ptxdist@pengutronix.de; Fri, 11 Jan 2013 08:30:55 +0100 Received: by mail-vb0-f51.google.com with SMTP id fq11so1134958vbb.24 for ; Thu, 10 Jan 2013 23:30:49 -0800 (PST) MIME-Version: 1.0 Date: Fri, 11 Jan 2013 09:30:48 +0200 Message-ID: From: Ruben Louw Subject: [ptxdist] Gdb debugging helper 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="===============0741187494==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0741187494== Content-Type: multipart/alternative; boundary=f46d0435c04c3d227104d2fe46ae --f46d0435c04c3d227104d2fe46ae Content-Type: text/plain; charset=ISO-8859-1 Hi everyone Does anyone know which debugging helper gdb uses? Could it be python? if so, I'd probably have to add it when I build my BSP, is this right? Thanks for any help/advice Regards Ruben --f46d0435c04c3d227104d2fe46ae Content-Type: text/html; charset=ISO-8859-1 Hi everyone

Does anyone know which debugging helper gdb uses? Could it be python? if so, I'd probably have to add it when I build my BSP, is this right?

Thanks for any help/advice

Regards

Ruben
--f46d0435c04c3d227104d2fe46ae-- --===============0741187494== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0741187494==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lvps176-28-13-145.dedicated.hosteurope.de ([176.28.13.145]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TtdiL-0004Xg-TB for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:28:02 +0100 Received: from dabox.localnet (unknown [213.157.30.20]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id 54B69A8A407B for ; Fri, 11 Jan 2013 13:28:01 +0100 (CET) From: Tim Sander Date: Fri, 11 Jan 2013 13:27:58 +0100 Message-ID: <9773402.Yor6vSR5Wv@dabox> In-Reply-To: References: <13317004.u3s2pIUGrD@dabox> MIME-Version: 1.0 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi Ruben > 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. It was not enabled for the older toolchains (2011.03.1) and is is enabled for 2011.11.3. Just take a look at rules/cross-gdb.make Best regards Tim -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttdl8-0004zK-7Q for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:30:54 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1Ttdl8-0003L8-79 for ptxdist@pengutronix.de; Fri, 11 Jan 2013 13:30:54 +0100 Date: Fri, 11 Jan 2013 13:30:54 +0100 From: Michael Olbrich Message-ID: <20130111123054.GB11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vb0-f44.google.com ([209.85.212.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TteG8-0007U7-SD for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:02:58 +0100 Received: by mail-vb0-f44.google.com with SMTP id fc26so1388317vbb.31 for ; Fri, 11 Jan 2013 05:02:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130111130036.GC11738@pengutronix.de> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> <20130111123054.GB11738@pengutronix.de> <20130111130036.GC11738@pengutronix.de> Date: Fri, 11 Jan 2013 15:02:50 +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="===============1170315570==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1170315570== Content-Type: multipart/alternative; boundary=20cf30780ca4adc79804d302e9f8 --20cf30780ca4adc79804d302e9f8 Content-Type: text/plain; charset=ISO-8859-1 Thanks Michael Thats what you meant by it installs it if it can find the headers, right? so if i have python-dev installed on my host, and python is enabled in cross-gdb.make, then it will link python and all that, right? On Fri, Jan 11, 2013 at 3:00 PM, Michael Olbrich wrote: > On Fri, Jan 11, 2013 at 02:37:01PM +0200, Ruben Louw wrote: > > 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] > [...] > > its not linking to Python right? > > Correct. > > > if i then install python, do i have to > > make the link myself? > > 1. Install whatever packages provides Python.h in your distro (python-dev > in Debian). > > 2. Rebuild the toolchain, or just part of if as Juergen suggested. > Python support is automatically enabled if found. > > 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 > --20cf30780ca4adc79804d302e9f8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Michael

Thats what you meant by it installs it if it can find= the headers, right? so if i have python-dev installed on my host, and pyth= on is enabled in cross-gdb.make, then it will link python and all that, rig= ht?



On Fri, Jan 11, 2013 at 3:00 PM, Mic= hael Olbrich <m.olbrich@pengutronix.de> wrote:
On Fri, Jan 11, 2013 at 02:37:01PM +0200, Ruben Louw wrot= e:
> 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:
> =A0 Tag =A0 =A0 =A0 =A0Type =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 Name/Value
> =A00x0000000000000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 Shared library:= [libdl.so.2]
> =A00x0000000000000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 Shared library:= [libncurses.so.5]
> =A00x0000000000000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 Shared library:= [libtinfo.so.5]
> =A00x0000000000000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 Shared library:= [libm.so.6]
> =A00x0000000000000001 (NEEDED) =A0 =A0 =A0 =A0 =A0 =A0 Shared library:= [libc.so.6]
[...]
> its not linking to Python right?

Correct.

> if i then install python, do i have to
> make the link myself?

1. Install whatever packages provides Python.h in your distro (python= -dev
=A0 =A0in Debian).

2. Rebuild the toolchain, or just part of if as Juergen suggested.
Python support is automatically enabled if found.

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

--20cf30780ca4adc79804d302e9f8-- --===============1170315570== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1170315570==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lvps176-28-13-145.dedicated.hosteurope.de ([176.28.13.145]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Tteat-0001AV-El for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:24:23 +0100 Received: from dabox.localnet (unknown [62.159.134.146]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id 3D9DFA8A407B for ; Fri, 11 Jan 2013 14:24:23 +0100 (CET) From: Tim Sander Date: Fri, 11 Jan 2013 14:24:22 +0100 Message-ID: <3829385.EBiSgMqEk7@dabox> In-Reply-To: <20130111123054.GB11738@pengutronix.de> References: <20130111123054.GB11738@pengutronix.de> MIME-Version: 1.0 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi Michael > 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. I have python-dev installed, nevertheless i had to add --enable-python, at l last in the 2011.03.1 toolchain, and probably i have added this line also to the 2011.11.3 toolchain after i add it to my git repo... So with ubuntu 12.04 64bit i had to add this enable-python flag. Maybe autodetection is not working correctly? Best regards Tim -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 14:25:45 +0100 References: <201301111412.37126.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301111425.45559.jbe@pengutronix.de> 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Hi Ruben, please don't forget the mailing list :) Ruben Louw wrote: > thanks Juergen You're welcome. > That was my problem, I removed the already built Toolchain that was in my > home directory. Now it wants to download everything. Setup PTXdist to use a special directory for the downloaded archives. Then the download happens only once. > Oh well, mental note to self, dont just remove stuff. I walk seems like a > great idea, would rather buy you, Tim and Michael a beer ;) > > Thanks for all your help guys. Regards Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-f173.google.com ([209.85.220.173]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TtcJ6-0007pR-7T for ptxdist@pengutronix.de; Fri, 11 Jan 2013 11:57:53 +0100 Received: by mail-vc0-f173.google.com with SMTP id f13so1312538vcb.32 for ; Fri, 11 Jan 2013 02:57:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <13317004.u3s2pIUGrD@dabox> References: <201301110940.10949.jbe@pengutronix.de> <13317004.u3s2pIUGrD@dabox> Date: Fri, 11 Jan 2013 12:57:45 +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="===============0753212658==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0753212658== Content-Type: multipart/alternative; boundary=047d7b67002d5a325b04d3012a1c --047d7b67002d5a325b04d3012a1c Content-Type: text/plain; charset=ISO-8859-1 Hi Tim 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? Thanks! Ruben On Fri, Jan 11, 2013 at 11:42 AM, Tim Sander wrote: > Hi Ruben > > Am Freitag, 11. Januar 2013, 10:47:07 schrieb Ruben Louw: > > hmm. makes sense to be on host. But I think this should be included when > > build the toolchain or something, I'm only speculating. but i'll play > > around with it, hopefully smoke does'nt come out anywhere. > Its the Toolchain. You need the following change in the toolchain. > I would suggest to have this enabled by default, while we are at it. > Best regards > Tim > > diff --git a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make > b/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make > index 727de25..8c1ffdc 100644 > --- a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make > +++ b/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make > @@ -63,6 +63,7 @@ CROSS_GDB_AUTOCONF := \ > $(PTXCONF_TOOLCHAIN_CONFIG_SYSROOT) \ > \ > --disable-werror \ > + --enable-python \ > --enable-tui > > $(STATEDIR)/cross-gdb.prepare: > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --047d7b67002d5a325b04d3012a1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Tim

Thanks for the advice. Just to be sure. Python was not enable= d (default) then as the helper? Could it be I was correct? So then I need t= o 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 solutio= n.

Do I understand this correctly, or am I way off?

Thanks!

= Ruben


On Fri, Jan 11, 2013 at 11:42 A= M, Tim Sander <tim@krieglstein.org> wrote:
Hi Ruben

Am Freitag, 11. Januar 2013, 10:47:07 schrieb Ruben Louw:
> hmm. makes sense to be on host. But I think this should be included wh= en
> build the toolchain or something, I'm only speculating. but i'= ll play
> around with it, hopefully smoke does'nt come out anywhere.
Its the Toolchain. You need the following change in the toolchain.
I would suggest to have this enabled by default, while we are at it.
Best regards
Tim

diff --git a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make b/to= olchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make
index 727de25..8c1ffdc 100644
--- a/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make
+++ b/toolchain/OSELAS.Toolchain-2011.03.1/rules/cross-gdb.make
@@ -63,6 +63,7 @@ CROSS_GDB_AUTOCONF :=3D \
=A0 =A0 =A0 =A0 $(PTXCONF_TOOLCHAIN_CONFIG_SYSROOT) \
=A0 =A0 =A0 =A0 \
=A0 =A0 =A0 =A0 --disable-werror \
+ =A0 =A0 =A0 --enable-python \
=A0 =A0 =A0 =A0 --enable-tui

=A0$(STATEDIR)/cross-gdb.prepare:


--
ptxdist mailing list
ptxdist@pengutronix.de

--047d7b67002d5a325b04d3012a1c-- --===============0753212658== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0753212658==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 09:09:59 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301110909.59266.jbe@pengutronix.de> Subject: Re: [ptxdist] Gdb debugging helper Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Hi Ruben, Ruben Louw wrote: > Does anyone know which debugging helper gdb uses? Could it be python? What is a 'debugging helper'??? .oO("Computer! Find the bugs in my app right now!"?) ;) > if so, I'd probably have to add it when I build my BSP, is this right? Please keep always in mind the difference between your target and your host. Most of the time, only the small gdbserver runs on your target and the main full blown/featured debugger on your host. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 11 Jan 2013 09:40:10 +0100 References: <201301110909.59266.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201301110940.10949.jbe@pengutronix.de> Subject: Re: [ptxdist] Gdb debugging helper Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Ruben Louw Hi Ruben, Ruben Louw wrote: > > ("Computer! Find the bugs in my app right now!"?) ;) > > hehehe, I wish it was this simple. Maybe we should give it a try :)) > The debugging helper enables the viewing of complex objects in the IDE (Qt > Creator in my case). so when gdbserver is started on the target, the IDE > then starts gdb on the host and the to communicate with each other. As soon > as a break point is reached, the variable types and values are displayed > using a debug helper. from what I could gather, this helper is either > python or normal c++. Hmm, then these helpers should run on your host. So, PTXdist and your target's gdbserver are not involved. When these helpers are using the gdb to collect the information they need, I would guess it should work out of the box. >> Please keep always in mind the difference between your target and your >> host. Most of the time, only the small gdbserver runs >on your target and >> the main full blown/featured debugger on your host. > > this is also how I understand it, all the helper does is "Indetify" the > types and its values, then you dont have to guess what the content of the > variable or objects are. I know this behaviour from DDD where you also can click through linked lists and so on. Very comfortable. Happy hacking. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: <201301111425.45559.jbe@pengutronix.de> References: <201301111412.37126.jbe@pengutronix.de> <201301111425.45559.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 15:33:28 +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="===============1183787958==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert Cc: ptxdist@pengutronix.de --===============1183787958== Content-Type: multipart/alternative; boundary=f46d043bdfe63bd4bb04d3035732 --f46d043bdfe63bd4bb04d3035732 Content-Type: text/plain; charset=ISO-8859-1 Appologies for doing it again. keep forgetting, crap. Will setup a directory like that, or i wont just remove stuff. Thanks On Fri, Jan 11, 2013 at 3:25 PM, Juergen Beisert wrote: > Hi Ruben, > > please don't forget the mailing list :) > > Ruben Louw wrote: > > thanks Juergen > > You're welcome. > > > That was my problem, I removed the already built Toolchain that was in my > > home directory. Now it wants to download everything. > > Setup PTXdist to use a special directory for the downloaded archives. Then > the > download happens only once. > > > Oh well, mental note to self, dont just remove stuff. I walk seems like a > > great idea, would rather buy you, Tim and Michael a beer ;) > > > > Thanks for all your help guys. > > Regards > Juergen > > -- > Pengutronix e.K. | Juergen Beisert > | > Linux Solutions for Science and Industry | http://www.pengutronix.de/ | > --f46d043bdfe63bd4bb04d3035732 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Appologies for doing it again. keep forgetting, crap.

Will setup a d= irectory like that, or i wont just remove stuff.

Thanks

On Fri, Jan 11, 2013 at 3:25 PM, Juergen Beisert <j= be@pengutronix.de> wrote:
Hi Ruben,

please don't forget the mailing list :)

Ruben Louw wrote:
> thanks Juergen

You're welcome.

> That was my problem, I removed the already built Toolchain that was in= my
> home directory. Now it wants to download everything.

Setup PTXdist to use a special directory for the downloaded archives.= Then the
download happens only once.

> Oh well, mental note to self, dont just remove stuff. I walk seems lik= e a
> great idea, would rather buy you, Tim and Michael a beer ;)
>
> Thanks for all your help guys.

Regards
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|

--f46d043bdfe63bd4bb04d3035732-- --===============1183787958== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1183787958==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from www.weihenstephan.org ([80.190.177.12]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Ttecw-0001dQ-M8 for ptxdist@pengutronix.de; Fri, 11 Jan 2013 14:26:34 +0100 Received: from isonoe.hi.pengutronix.de (port-212-202-120-50.static.qsc.de [212.202.120.50]) by www.weihenstephan.org (Postfix) with ESMTPSA id 9D9B948127B for ; Fri, 11 Jan 2013 14:24:15 +0100 (CET) Resent-To: ptxdist@pengutronix.de Resent-Message-ID: <201301111425.51939.lfxciii@gmail.com> MIME-Version: 1.0 In-Reply-To: <201301111412.37126.jbe@pengutronix.de> References: <201301111345.08076.jbe@pengutronix.de> <201301111412.37126.jbe@pengutronix.de> Date: Fri, 11 Jan 2013 15:16:45 +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="===============1834287172==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Juergen Beisert --===============1834287172== Content-Type: multipart/alternative; boundary=20cf30780ca475403104d3031b2d --20cf30780ca475403104d3031b2d Content-Type: text/plain; charset=ISO-8859-1 thanks Juergen That was my problem, I removed the already built Toolchain that was in my home directory. Now it wants to download everything. Oh well, mental note to self, dont just remove stuff. I walk seems like a great idea, would rather buy you, Tim and Michael a beer ;) Thanks for all your help guys. Regards Ruben On Fri, Jan 11, 2013 at 3:12 PM, Juergen Beisert wrote: > Hi Ruben, > > Ruben Louw wrote: > > How do I partially rebuild the cross-gdb package? > > With the commands I mentioned. If you have kept your already built > OSELAS.Toolchain-2012.12.0 build directory, with "ptxdist clean name>; ptxdist go" you can force the re-build of the package name>. > > > it keeps downloading stuff. > > ??? > > > Should i remove the previous toolchain before rebuilding it, if so, > > how do i remove it? > > If you really want to start from scratch: > > ~$ rm -rf /opt/OSELAS.Toolchain-2012.12.0/ > ~/OSELAS.Toolchain-2012.12.0$ ptxdist clean > ~/OSELAS.Toolchain-2012.12.0$ ptxdist go > > And then go for a walk. :) > > Regards, > Juergen > > -- > Pengutronix e.K. | Juergen Beisert > | > Linux Solutions for Science and Industry | http://www.pengutronix.de/ | > --20cf30780ca475403104d3031b2d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thanks Juergen

That was my problem, I removed the already built Tool= chain that was in my home directory. Now it wants to download everything. <= br>
Oh well, mental note to self, dont just remove stuff. I walk seems l= ike a great idea, would rather buy you, Tim and Michael a beer ;)

Thanks for all your help guys.

Regards

Ruben

On Fri, Jan 11, 2013 at 3:12 PM, Juergen Beisert <j= be@pengutronix.de> wrote:
Hi Ruben,

Ruben Louw wrote:
> How do I partially rebuild the cross-gdb packa= ge?

With the commands I mentioned. If you have kept your already built OSELAS.Toolchain-2012.12.0 build directory, with "ptxdist clean <pa= ckage
name>; ptxdist go" you can force the re-build of the package <pa= ckage name>.

> it keeps downloading stuff.

???

> Should i remove the previous toolchain before rebuilding it, if so, > how do i remove it?

If you really want to start from scratch:

~$ rm -rf /opt/OSELAS.Toolchain-2012.12.0/<your toolchain to remove><= br> ~/OSELAS.Toolchain-2012.12.0$ ptxdist clean
~/OSELAS.Toolchain-2012.12.0$ ptxdist go

And then go for a walk. :)

Regards,
Juergen

--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 |
Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutronix.de/ =A0|

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