pdebug over rs232

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
machines.
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

Can you elaborate on what you mean by ‘it does not work’?

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
machines.
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

Mats Pettersson <mats.pettersson@wavium.se> 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
machines.
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

Hi.

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
port debugging.

Regards,
GP

Graeme Peterson <gp@qnx.com> wrote:

Mats Pettersson <> mats.pettersson@wavium.se> > wrote:
Hi. I’m trying to use gdb and pdebug over rs232 but it does not work.
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 &”

And, if you intend to “run” as opposed to “attach”, you need “devc-pty”
running on the target too (although the error message given when you
don’t do this is pretty obvious).

Have anyone succeeded in using pdebug over rs232? Any special tricks?

Nope; it is my sole method of using it, and it always works for me …