Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: 198710 on February 11, 2010, 07:45:53 am

Title: How to configure remote debug option with serial port?
Post by: 198710 on February 11, 2010, 07:45:53 am
I set up a debian virtual machine inside virtualbox and enabled a serial port "COM1","Host Pipe",and give out a file path with "Create Pipe" option enabled.
Then I copied a debug file to debian via nfs-server,and started gdbserver on it.("gdbserver /dev/ttyS0 xxx")
I configured CB's remote debug option:
connection type:Serial Port
Serial Port:xxx(the file and its absolute directory is the same as the "file path" in virtualbox,is this correct?)
Baud:9600

I started to debug with the debug button,and the CB's debugger console says:
Setting serial connection speed to 9600
Connecting to remote target
Setting breakpoints
Debugger name and version: GNU gdb 6.8-debian
Connected
The program is not being run.
Debugger finished with status 0

What's wrong?
Title: Re: How to configure remote debug option with serial port?
Post by: 198710 on February 20, 2010, 08:22:12 am
55 views & no reply...
My incorrect settings or a bug of CB?
Any help will be appreciated.
Title: Re: How to configure remote debug option with serial port?
Post by: mariocup on February 20, 2010, 07:46:23 pm
Hi,

does everything work if you use the gdb in the command line with serial interface?