Re: remote debugging using gdbserver
The server runs on an ARM machine, and the client on my own machine. They both have gdb v7 Thanks, Ido http://ik.homelinux.org/ On Thu, Dec 17, 2009 at 9:31 AM, Gilad Ben-Yossef gi...@codefidence.comwrote: ik wrote: Hello, I'm trying to use gdbserver as follows: $ gdbserver 192.168.0.202: ./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: 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: gi...@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. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
ik wrote: The server runs on an ARM machine, and the client on my own machine. They both have gdb v7 Then the procedure you wrote can never work. You need to let gdb know where are the shared library of the ARM (with debug information): set solib-absolute-prefix /dev/null set solib-shared-path /path/to/libs Then do target remote. Also, you did compile gdb for cross debugging ARM on your host, right? 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: gi...@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. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
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 gi...@codefidence.comwrote: ik wrote: Hello, I'm trying to use gdbserver as follows: $ gdbserver 192.168.0.202: ./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: 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{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
On Thu, Dec 17, 2009 at 10:24 AM, Gilad Ben-Yossef gi...@codefidence.comwrote: ik wrote: The server runs on an ARM machine, and the client on my own machine. They both have gdb v7 Then the procedure you wrote can never work. You need to let gdb know where are the shared library of the ARM (with debug information): set solib-absolute-prefix /dev/null set solib-shared-path /path/to/libs Thanks, I didn't know about this one/ Then do target remote. Also, you did compile gdb for cross debugging ARM on your host, right? No I have not :( good to know, I'll try first to look for something ready, and if not, I'll compile one. 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: gi...@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. Ido ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
On Thu, Dec 17, 2009 at 10:29:32AM +0200, ik wrote: On Thu, Dec 17, 2009 at 10:24 AM, Gilad Ben-Yossef gi...@codefidence.comwrote: Also, you did compile gdb for cross debugging ARM on your host, right? No I have not :( good to know, I'll try first to look for something ready, and if not, I'll compile one. You can have something ready from codesourcery: http://www.codesourcery.com/sgpp/lite/arm/portal/subscripti...@template=lite baruch -- ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
Thanks Baruch, I'll take a look at it. Ido http://ik.homelinux.org/ On Thu, Dec 17, 2009 at 10:33 AM, Baruch Siach bar...@tkos.co.il wrote: On Thu, Dec 17, 2009 at 10:29:32AM +0200, ik wrote: On Thu, Dec 17, 2009 at 10:24 AM, Gilad Ben-Yossef gi...@codefidence.comwrote: Also, you did compile gdb for cross debugging ARM on your host, right? No I have not :( good to know, I'll try first to look for something ready, and if not, I'll compile one. You can have something ready from codesourcery: http://www.codesourcery.com/sgpp/lite/arm/portal/subscripti...@template=lite baruch -- ~. .~ Tk Open Systems =}ooO--U--Ooo{= - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: remote debugging using gdbserver
ik wrote: Hello, I'm trying to use gdbserver as follows: $ gdbserver 192.168.0.202: http://192.168.0.202: ./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: http://192.168.0.202: 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: gi...@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. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
remote debugging using gdbserver
Hello, I'm trying to use gdbserver as follows: $ gdbserver 192.168.0.202: ./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: The gdb server hangsup. What am I missing/doing wrong here ? Thanks, Ido http://ik.homelinux.org/ ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il