Using gdbserver
lanas <[email protected]>
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to use DDD for remote debugging. The host (192.168.1.1) runs SuSE 9.3 (ddd and gdb comes installed) and the Pentium target (192.168.1.2) runs Linux 2.4.21. with latest gdb. Both are conencted through network. gdb is configured for i586 on one machine and i686 on the other. Setup The C program is called test. It was compiled with switch -ggdb on both the host and the target. Both executable and files source are found on each machine in the current directories where gdbserver (target) and ddd (host) are launched from. Here's what I do and what happens: Target : run gdbserver #gdbserver 192.168.1.1:12345 test Process test created; pid = 1545 Listening on port 12345 Host : run ddd, load test, and connect to remote #ddd (GNU gdb 6.3) file test (in gdb window) target remote 192.168.1.2:12345 (in gdb window) Target : now shows this: Remote debugging from host 10.4.106.134 Host : set a breakpoint at a line near the beginning of code and press run Target : now immediately shows this: Killing inferior In other words, the target drops the debugging session as soon as the program is run from ddd. I've searched the web, and it seems I'm doing things all right. Is there something I'm missing ? Are the two machines to be exact same architecture (I think not) ? Does the version of the compiler has a role ? Thanks for any hint, suggestion, advice, etc...