Re: gdbserver using serial port

Daniel Jacobowitz
2007-11-02T11:31:57Z

On Fri, Nov 02, 2007 at 01:11:47PM +0900, Yoriko Komatsuzaki wrote:
>
> Thank you for your answer.
>
> My environment is a littel special.
>
> On target (gdbserver run), the serial (/dev/ttyS0) is used as the
> channel. But on host (gdb run), the usb (/dev/ttyUSB0) is used.
> And the host and the target is connected by "the serial/usb
> transimission cable".
>
> So I guess that this special hardware environment might affects this
> problem.
>
> % gdb
> (gdb) set debug remote 1
> (gdb) set debug serial 1
> (gdb) target remote /dev/ttyUSB0
> Remote debugging using /dev/ttyUSB0
> Sending packet: $qSupported#37...

This looks like either a baud rate problem, or some other complete
failure of serial support on your host. GDB can't read even a single
byte from your target.