This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: remote debugging via rs332c - output lost
- To: hollerer at gmx dot net
- Subject: Re: remote debugging via rs332c - output lost
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 31 Jan 2000 16:19:50 +1100
- CC: gdb at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <Pine.SGI.3.95.1000112145321.6887B-100000@world.std.com>
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