My problem is that I have a virtual ARM platform to which I ported the Linux Kernel. Then I created a filesystem using MontaVista tools and packaged it with the necessary software.
What I want to do is debug applications on the target machine from the host machine. The only solution that I could find for this was gdbserver.
But, I cannot connect to my virtual machine.
First of all, here are my network configurations.
*Host Machine*
Code:
bash-3.00$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:03:95:80
inet addr:192.168.10.78 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::213:d4ff:fe03:9580/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68244461 errors:407 dropped:0 overruns:0 frame:0
TX packets:86167715 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:651299170 (621.1 MiB) TX bytes:31556850 (30.0 MiB)
Interrupt:5 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:164464503 errors:0 dropped:0 overruns:0 frame:0
TX packets:164464503 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:845988992 (806.7 MiB) TX bytes:845988992 (806.7 MiB)
*Virtual Platform*
Code:
# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1180 (1.1 KiB) TX bytes:1180 (1.1 KiB)
Interrupt:25 Base address:0x2000 DMA chan:ff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Now, I fire up gdbserver on the target machine using this command:
Code:
gdbserver host:2345 ./fun
Then I try to connect to the virtual platform from the host machine.
Code:
target remote :2345
I do this after redirecting the port 2345 to communicate with the port 2345 of the virtual platform.
What I get as error is this:
Code:
(gdb) target remote :2345
Remote debugging using :2345
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
If anybody can explain as to what is going wrong, I would be really grateful.
Thanks
Rahul