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==--