Author Topic: How to configure remote debug option with serial port?  (Read 3259 times)

Offline 198710

  • Multiple posting newcomer
  • *
  • Posts: 32
How to configure remote debug option with serial port?
« 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?

Offline 198710

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: How to configure remote debug option with serial port?
« Reply #1 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.

Offline mariocup

  • Developer
  • Lives here!
  • *****
  • Posts: 586
Re: How to configure remote debug option with serial port?
« Reply #2 on: February 20, 2010, 07:46:23 pm »
Hi,

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