Skip to contentSkip to conversation

Heretical Question

DISCUSSION Kent Borg 4 participants 4 messages Jul 9, 2003

lore
Share & tools
lore

Kent Borg

author
#0 lore raw

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/

#1 lore raw
Quoted 4 lines · In message <[email protected]> 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 &
Quoted 2 lines

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.

Quoted 1 line

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: [email protected] 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/

#2 lore raw
In reply to Kent Borg

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/

#3 lore raw
In reply to Kent Borg
Quoted 11 lines · Kent Borg

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.

Quoted 2 lines

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 [email protected]

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