Mats Pettersson <email@example.com> wrote:
Hi. I’m trying to use gdb and pdebug over rs232 but it does not work.
I have verified that the communication works over the rs232 line between the
I’m running QNX6 on a PC and devc-ser8250 is started without any arguments
(default values then).
Using pdebug over TCP/IP is not possible in this case.
Have anyone succeeded in using pdebug over rs232? Any special tricks?
regards, Mats P
First the serial ports should both have the same baud rate. For debug
purposes, the lower the better, say 9600 for now.
Pdebug must have exlusive ownership of the serial port on your target.
Run pdebug with a device and baud rate: “pdebug /dev/ser1,9600 &”
In gdb, use the command “target qnx <local_serial_device>”. A common
mistake here is to say “target remote …”. pdebug has its own
protocol different from the GDB remote protocol, and “target qnx …”
tells that to gdb.
You might also want to upgrade to the latest release of our gdb port.
There is a bug in the gdb’s shipped with 6.1 that destabilized serial