remote debugging using gdbserver

remote debugging using gdbserver

Gilad Ben-Yossef gilad at codefidence.com
Thu Dec 17 09:31:39 IST 2009


ik wrote:

> Hello,
>
> I'm trying to use gdbserver as follows:
> $ gdbserver 192.168.0.202:2222 <http://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 <http://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


-- 
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.

Web:   http://codefidence.com
Cell:  +972-52-8260388
Skype: gilad_codefidence
Tel:   +972-8-9316883 ext. 201
Fax:   +972-8-9316884
Email: gilad at codefidence.com

Check out our Open Source technology and training blog - http://tuxology.net

	"That is not dead which can eternal lie.
	 And with strange aeons even death may die."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091217/00c515e8/attachment.html>


More information about the Linux-il mailing list