Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Debugging embedded linux
- 03-02-2005
March 2, 2005, 11:22 am

Hi,
We are currently developing an embedded linux application and so far we
have been doing remote debugging with gdbserver, gdb and ddd as the
human useable inteface on the linux box. So far so good, but remote
debugging is not that rock solid and we got the idea of plugging a VGA
card on the embedded linux machine and do it all directly.
Well, now debugging runs into another problem. Since the embedded
system is not that big, there is no KDE or the like and thus the ddd
cannot run. GDB directly is kind of tough, so the question is if there
exist some equivalet of ddd that will run on an embedded system with no
X windows. Any other ideas?
Thanks,
Jens.
We are currently developing an embedded linux application and so far we
have been doing remote debugging with gdbserver, gdb and ddd as the
human useable inteface on the linux box. So far so good, but remote
debugging is not that rock solid and we got the idea of plugging a VGA
card on the embedded linux machine and do it all directly.
Well, now debugging runs into another problem. Since the embedded
system is not that big, there is no KDE or the like and thus the ddd
cannot run. GDB directly is kind of tough, so the question is if there
exist some equivalet of ddd that will run on an embedded system with no
X windows. Any other ideas?
Thanks,
Jens.

Re: Debugging embedded linux

Have you tried the 'gdb -tui' option? It makes things at least a
little bit easier because you have a split screen with your source
code above. And I've heard from someone in the newsgroups that it's
possible to connect emacs to gdb. But sorry, i can't tell you details
about that since i haven't tried it yet.
Hans

Re: Debugging embedded linux

What seems to be the problem?

You could try running DDD on the target but using a remote machine
as display. Usually you do this with:
# export DISPLAY=<your_development_machine>:0.0
# ddd
Actually this works not only with ddd but with just about any X
client program. In most cases, you will first have to enable
remote connections to your host machine's X server with "xhost +".
Note that this still requires the X shared libraries to reside
on the target, but not the X server and also not the full desktop
(KDE, etc.). Also, obviously, you don't need a graphics card in your
target this way.
HTH
Rob
--
Robert Kaiser email: rkaiser AT sysgo DOT com
SYSGO AG http://www.elinos.com
Robert Kaiser email: rkaiser AT sysgo DOT com
SYSGO AG http://www.elinos.com
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » remote debugging zaurus PDA SL5500
- — Next thread in » Embedded Linux
-
- » Timesys 2.4.21 Realtime Kernel and XFree86 4.0.3
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » diy Gyrotrons?
- — The site's Newest Thread. Posted in » Electronics Design
-
- » Potenza trafo incognita
- — The site's Last Updated Thread. Posted in » Electronics Hobby (Italian)
-