This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: remote.c patch




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]