az20110303 n00b
Joined: 21 Mar 2011 Posts: 30
|
Posted: Fri May 27, 2011 11:35 am Post subject: gdb on virtualbox with serial port |
|
|
Can anyone help to setup gentoo remote debugging?
I set up serial port for my gentoo virtual machine (virtualbox) this way:
http://oi51.tinypic.com/2nrg7r7.jpg
I also on my ubuntu host did this: chmod 777 /dev/ttyS0
It seems to work ok.
Then i boot from iso image systemrescuecd-x86-2.1.1.iso
I made a small hello-world c program and compiled it with -g option on virtual machine.
Then i copied it on my ubuntu host.
Now i try to debug it:
Code: | az@az-ubuntu:/mnt/misc/remote-debug$ gdb --silent ./1
Reading symbols from /mnt/misc/remote-debug/1...done.
(gdb) show remotebaud
Baud rate for remote serial I/O is 4294967295.
(gdb) set remotebaud 115200
(gdb) show remotebaud
Baud rate for remote serial I/O is 115200.
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
s
l |
as you see, i connect to virtual serial port normally, but entering commans have no effect.
After some time of being idle debugger prints this:
Code: | Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
(gdb) |
What's the problem? any help? |
|