remote debugging using gdbserver

remote debugging using gdbserver

Baruch Siach baruch at tkos.co.il
Thu Dec 17 10:25:59 IST 2009


Hi Ido,

On Thu, Dec 17, 2009 at 10:16:44AM +0200, ik wrote:
> The server runs on an ARM machine, and the client on my own machine.
> They both have gdb v7

Are you using a cross GDB on you host? Which one?

baruch

> On Thu, Dec 17, 2009 at 9:31 AM, Gilad Ben-Yossef 
> <gilad at codefidence.com>wrote:
> 
> >  ik wrote:
> >
> > Hello,
> >
> > I'm trying to use gdbserver as follows:
> > $ gdbserver 192.168.0.202:2222 ./hello
> >
> > When I try to debug the program "hello" using a gdb located on a different
> > machine as follows:
> >
> > gdb $ target remote 192.168.0.202:2222
> >
> > The gdb server hangsup.
> >
> > What am I missing/doing wrong here ?
> >
> >
> > What are the machines in question running? is it the exact same software?
> >
> > If not, you need to tell GDB where to find the shared libraries with debug
> > information of your remote host.
> >
> > Gilad

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the Linux-il mailing list