linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Heretical Question
@ 2003-07-09 19:57 Kent Borg
  2003-07-09 20:14 ` Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kent Borg @ 2003-07-09 19:57 UTC (permalink / raw)
  To: linuxppc-embedded


I know it is wrong for me to ask, but is there (possibly already
lurking in my Red Hat box?) a graphical front end to GDB that will
work with embedded programming?  Emacs already lets me debug with
source code pretty well (not assembly, however), and that is nice, but
what I really miss is a way to browse through data structures.  Kdbg
looks good, but it seems to be for native debugging only (though I
might hack at it a little to issue the elusive "target remote ...").
It is possible ddd would do, but it also seems to be for native
debugging only too.

Suggestions?


Thanks,

-kb

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Heretical Question
@ 2003-07-09 20:09 Steven Blakeslee
  2003-07-11 15:14 ` Kent Borg
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Blakeslee @ 2003-07-09 20:09 UTC (permalink / raw)
  To: 'Kent Borg', linuxppc-embedded


ddd will let you specify a gdb debugger to use. You have to add -g -ggdb to
the CFLAGS and compile the kernel.  Then give the command

ddd --debugger ppc_8xx-gdb vmlinux

Replace ppc_8xx-gdb with your debugger of choice, gdb is the default if you
do not specify.

-----Original Message-----
From: Kent Borg [mailto:kentborg@borg.org]
Sent: Wednesday, July 09, 2003 3:57 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Heretical Question



I know it is wrong for me to ask, but is there (possibly already
lurking in my Red Hat box?) a graphical front end to GDB that will
work with embedded programming?  Emacs already lets me debug with
source code pretty well (not assembly, however), and that is nice, but
what I really miss is a way to browse through data structures.  Kdbg
looks good, but it seems to be for native debugging only (though I
might hack at it a little to issue the elusive "target remote ...").
It is possible ddd would do, but it also seems to be for native
debugging only too.

Suggestions?


Thanks,

-kb


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Heretical Question
  2003-07-09 19:57 Kent Borg
@ 2003-07-09 20:14 ` Wolfgang Denk
  2003-07-09 20:30 ` Vladimir Gurevich
  2003-07-09 20:53 ` Kenneth Johansson
  2 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2003-07-09 20:14 UTC (permalink / raw)
  To: Kent Borg; +Cc: linuxppc-embedded


In message <20030709155723.G20807@borg.org> you wrote:
>
> I know it is wrong for me to ask, but is there (possibly already
> lurking in my Red Hat box?) a graphical front end to GDB that will
> work with embedded programming?  Emacs already lets me debug with

There is: "ddd".

Use it for example like this:

	bash$ export CROSS_COMPILE=ppc_82xx-
	bash$ ddd --debugger ${CROSS_COMPILE}gdb &

> It is possible ddd would do, but it also seems to be for native
> debugging only too.

No, with  the  "--debugger"  option  you  can  tell  it  to  use  the
cross-GDB, too.

> Suggestions?

RTFM :-)

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Clothes make the man. Naked people have little  or  no  influence  on
society.                                                 - Mark Twain

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Heretical Question
  2003-07-09 19:57 Kent Borg
  2003-07-09 20:14 ` Wolfgang Denk
@ 2003-07-09 20:30 ` Vladimir Gurevich
  2003-07-09 20:53 ` Kenneth Johansson
  2 siblings, 0 replies; 7+ messages in thread
From: Vladimir Gurevich @ 2003-07-09 20:30 UTC (permalink / raw)
  To: Kent Borg; +Cc: linuxppc-embedded


Hello Kent,

I guess

        ddd --gdb --debugger ${CROSS_COMPILE}gdb <elf_file>

is what you are looking for.

With regards to assembly language debugging your mileage may
vary. While GDB supports assemblty language there seem to be
a couple of bugs which sometimes prevent you from doing it
(mostly when the code is being relocated). Wolfgang Denk
is working on it. And make sure you compile your assembly
code with -gstabs to enable line number information.

Thanks,
Vladimir


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Heretical Question
  2003-07-09 19:57 Kent Borg
  2003-07-09 20:14 ` Wolfgang Denk
  2003-07-09 20:30 ` Vladimir Gurevich
@ 2003-07-09 20:53 ` Kenneth Johansson
  2 siblings, 0 replies; 7+ messages in thread
From: Kenneth Johansson @ 2003-07-09 20:53 UTC (permalink / raw)
  To: Kent Borg; +Cc: linuxppc-embedded@lists.linuxppc.org


On Wed, 2003-07-09 at 21:57, Kent Borg wrote:
>
> I know it is wrong for me to ask, but is there (possibly already
> lurking in my Red Hat box?) a graphical front end to GDB that will
> work with embedded programming?  Emacs already lets me debug with
> source code pretty well (not assembly, however), and that is nice, but
> what I really miss is a way to browse through data structures.  Kdbg
> looks good, but it seems to be for native debugging only (though I
> might hack at it a little to issue the elusive "target remote ...").
> It is possible ddd would do, but it also seems to be for native
> debugging only too.
>
> Suggestions?
>

http://sourceware.redhat.com/insight/

Never tried but since this is the old cygnus stuff it really should do
cross debugging well.


--
Kenneth Johansson
Ericsson AB                       Tel: +46 8 719 70 20
Tellusborgsvägen  90              Fax: +46 8 719 29 45
126 25 Stockholm                  ken@switchboard.ericsson.se


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Heretical Question
@ 2003-07-09 21:00 Steven Blakeslee
  0 siblings, 0 replies; 7+ messages in thread
From: Steven Blakeslee @ 2003-07-09 21:00 UTC (permalink / raw)
  To: 'Kenneth Johansson', Kent Borg; +Cc: linuxppc-embedded


I've used insight on cygwin with an Abatron BDI 2000.  It seemed to work ok.

-----Original Message-----
From: Kenneth Johansson [mailto:kenneth.johansson@etx.ericsson.se]
Sent: Wednesday, July 09, 2003 4:53 PM
To: Kent Borg
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Heretical Question



On Wed, 2003-07-09 at 21:57, Kent Borg wrote:
>
> I know it is wrong for me to ask, but is there (possibly already
> lurking in my Red Hat box?) a graphical front end to GDB that will
> work with embedded programming?  Emacs already lets me debug with
> source code pretty well (not assembly, however), and that is nice, but
> what I really miss is a way to browse through data structures.  Kdbg
> looks good, but it seems to be for native debugging only (though I
> might hack at it a little to issue the elusive "target remote ...").
> It is possible ddd would do, but it also seems to be for native
> debugging only too.
>
> Suggestions?
>

http://sourceware.redhat.com/insight/

Never tried but since this is the old cygnus stuff it really should do
cross debugging well.


--
Kenneth Johansson
Ericsson AB                       Tel: +46 8 719 70 20
Tellusborgsvägen  90              Fax: +46 8 719 29 45
126 25 Stockholm                  ken@switchboard.ericsson.se


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Heretical Question
  2003-07-09 20:09 Heretical Question Steven Blakeslee
@ 2003-07-11 15:14 ` Kent Borg
  0 siblings, 0 replies; 7+ messages in thread
From: Kent Borg @ 2003-07-11 15:14 UTC (permalink / raw)
  To: Steven Blakeslee; +Cc: linuxppc-embedded


On Wed, Jul 09, 2003 at 04:09:01PM -0400, Steven Blakeslee wrote:
> ddd will let you specify a gdb debugger to use. You have to add -g -ggdb to
> the CFLAGS and compile the kernel.  Then give the command
>
> ddd --debugger ppc_8xx-gdb vmlinux
>
> Replace ppc_8xx-gdb with your debugger of choice, gdb is the default if you
> do not specify.

Yes, that works.  Thanks.


But it isn't as nice as I had hoped.  The display feature chews up
lots and lots of screen space, and little things like clicking on
something that began with "/x" fails, making it hard to browse values
in hex.  I was starting to get the hang of how to sort of use it when
I realized that I could do better with gdb inside emacs.  Hmmm.  I'll
have to try insight next.


-kb


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-07-11 15:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-09 20:09 Heretical Question Steven Blakeslee
2003-07-11 15:14 ` Kent Borg
  -- strict thread matches above, loose matches on Subject: below --
2003-07-09 21:00 Steven Blakeslee
2003-07-09 19:57 Kent Borg
2003-07-09 20:14 ` Wolfgang Denk
2003-07-09 20:30 ` Vladimir Gurevich
2003-07-09 20:53 ` Kenneth Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).