public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* extended remote protocol
@ 2000-09-11 16:21 J.T. Conklin
  2000-11-01  4:50 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: J.T. Conklin @ 2000-09-11 16:21 UTC (permalink / raw)
  To: gdb

The remote protocol description in gdb.texinfo states:
        Stubs that support the extended remote protocol return @samp{}
        which, unfortunately, is identical to the response returned by
        stubs that do not support protocol extensions.

which I've believed without question until earlier today.  I was
poking around gdbserver/server.c trying to tighten up command parsing,
and I found:

            case '!':
              extended_protocol = 1;
              prepare_resume_reply (own_buf, status, signal);
              break;
            case '?':
              prepare_resume_reply (own_buf, status, signal);
              break;

gdbserver is the only stub I know of that supports the extended remote
protocol.  Has it always output the resume reply like the '?' command?
Are there other stubs that support the extended remote protocol?

        --jtc

-- 
J.T. Conklin
RedBack Networks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: extended remote protocol
  2000-09-11 16:21 extended remote protocol J.T. Conklin
@ 2000-11-01  4:50 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2000-11-01  4:50 UTC (permalink / raw)
  To: jtc; +Cc: gdb

"J.T. Conklin" wrote:
> 
> The remote protocol description in gdb.texinfo states:
>         Stubs that support the extended remote protocol return @samp{}
>         which, unfortunately, is identical to the response returned by
>         stubs that do not support protocol extensions.
> 
> which I've believed without question until earlier today.  I was
> poking around gdbserver/server.c trying to tighten up command parsing,
> and I found:
> 
>             case '!':
>               extended_protocol = 1;
>               prepare_resume_reply (own_buf, status, signal);
>               break;
>             case '?':
>               prepare_resume_reply (own_buf, status, signal);
>               break;

1.7          (law      26-Jul-95):          case '!':
1.7          (law      26-Jul-95):            extended_protocol = 1;
1.7          (law      26-Jul-95):            prepare_resume_reply
(own_buf, status, signal);
1.7          (law      26-Jul-95):            break;

> 
> gdbserver is the only stub I know of that supports the extended remote
> protocol.  Has it always output the resume reply like the '?' command?
> Are there other stubs that support the extended remote protocol?

I'll do a little bit more digging but it looks like I was wrong.
(Checking two other stub implementations neither recognize the ``!''
packet.)

	Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-01  4:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-11 16:21 extended remote protocol J.T. Conklin
2000-11-01  4:50 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).