This is the mail archive of the insight@sourceware.cygnus.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Remote Debugging


Michael,

This is mostly a gdb question.  You need some kind of debugging monitor on
your target system - which as you rightly guessed is gdbserver.  Once you
have this built, you have to launch gdbserver on the target giving the
program for it to run, and a port to open (you also have to have an ethernet
connection on the board, by the way).  Then on the host gdb, you use "target
remote" to the embedded Linux box, using the port that you told gdbserver to
open.

Gdbserver is part of the standard gdb distribution in gdb/gdbserver; you
just need to build it for your target machine.  If you can build on your
target system, this is probably not too hard.  If you want to build it on
your development machine, that is a little harder, since host cross host
builds are not really supported with the Gnu tools right now.

There was a product from Red Hat (it's internal name was EL/IX but I don't
remember what the final product ended up being called) that does just what
you want, though not on the version of the target you are using.  It may
contain enough stuff to get you going, I don't know...  Anyway, it is going
in the same direction.

Hope this helps.

Jim

> Hey All,
> I'm new to Insight and even fairly new to GDB.  I'm trying to do
> some remote debugging of an embedded system.  I do have a monitor and
> keyboard/mouse for the target, so I hvae access to it.  I have tryed
> connecting to the target system, deathstar in this case, using a variety
> of port numbers but to no avail.  Do I need to be running gdbserver on
> the target.  I have Insight 5.0 running on the host.  The host is
> running Redhat Linux 6.2 and the Embedded system is running TimeSys
> Linux/RT 1.0.
> If I do need gdbserver, where do I get it or how do I invoke iit?
> 
> 
> Thanks,
> Michael E Crowe
> Software Engineer
> TimeSys Corporation
> mike@timesys.com
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]