Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdb on virtualbox with serial port
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
az20110303
n00b
n00b


Joined: 21 Mar 2011
Posts: 30

PostPosted: Fri May 27, 2011 11:35 am    Post subject: gdb on virtualbox with serial port Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum