remote debugging via rs332c - output lost

Andrew Cagney ac131313@cygnus.com
Sat Apr 1 00:00:00 GMT 2000


Quality Quorum wrote:
> 
> On Wed, 12 Jan 2000 hollerer@gmx.net wrote:
> 
> > hi,
> >
> > i am remote debugging programs which makes output
> > like
> >   printf("xxx called\r\n");
> >
> > it outputs the string on it's serial interface.
> > the same interface as used for gdb.
> > debugging generally works. but the host gdb does not
> > show the sent string.
> > what must i do that the host gdb shows output of the
> > remote program?
> 
> wrap it into 'O' message.

To expand a little on this.  You will need to encode the output string
using the ``O'' packet . See "Communication protocol"
http://sourceware.cygnus.com/gdb/onlinedocs/gdb_14.html#SEC115 (the URL
may be wrong).

	Andrew


More information about the Gdb mailing list