This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: remote.c patch
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: remote.c patch
- From: Quality Quorum <qqi at world dot std dot com>
- Date: Mon, 6 Dec 1999 10:36:53 -0500 (EST)
- cc: gdb at sourceware dot cygnus dot com
On Mon, 6 Dec 1999, Andrew Cagney wrote:
> > ***************
> > *** 4385,4393 ****
> > if (strcmp (buf, "OK") == 0)
> > break;
> > ! if (strlen (buf) == 3 && buf[0] == 'E'
> > ! && isdigit (buf[1]) && isdigit (buf[2]))
> > {
> > error ("Protocol error with Rcmd");
> > }
> > for (p = buf; p[0] != '\0' && p[1] != '\0'; p += 2)
> > {
> > --- 4536,4545 ----
> > if (strcmp (buf, "OK") == 0)
> > break;
> > !
> > ! if (buf[0] == 'E')
> > {
> > error ("Protocol error with Rcmd");
> > }
> > +
> > for (p = buf; p[0] != '\0' && p[1] != '\0'; p += 2)
> > {
> > ***************
>
> A two hex-digit response with digit ``E'' is valid. That is why the code
> had such a complicated check.
Thanks, is it possible to get a pointer to where recent additions
are described ?
BTW, was it possible to pick up another character beside 'E' ? :)
>
> Andrew
>
Thanks,
Aleksey