* Minimum set of actions to support vCont
@ 2018-11-23 10:17 Mathieu Tarral
2018-12-11 17:01 ` Simon Marchi
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Tarral @ 2018-11-23 10:17 UTC (permalink / raw)
To: gdb
Hi,
I'm implementing the vCont packet in my stub,
and so far, when I receive a vCont? packet, I reply with
"vCont;c;s" since I support singlestep and continue.
This implementation works in radare2, but it doesn't work with GDB:
Sending packet: $vCont?#49...Packet received: vCont;c;s
Packet vCont (verbose-resume) is NOT supported
What is the minimal set of actions required to support
vCont in GDB RSP ?
Thanks.
--
Mathieu Tarral
Sent with ProtonMail Secure Email.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Minimum set of actions to support vCont
2018-11-23 10:17 Minimum set of actions to support vCont Mathieu Tarral
@ 2018-12-11 17:01 ` Simon Marchi
0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2018-12-11 17:01 UTC (permalink / raw)
To: Mathieu Tarral; +Cc: gdb
On 2018-11-23 05:16, Mathieu Tarral wrote:
> Hi,
>
> I'm implementing the vCont packet in my stub,
> and so far, when I receive a vCont? packet, I reply with
> "vCont;c;s" since I support singlestep and continue.
>
> This implementation works in radare2, but it doesn't work with GDB:
> Sending packet: $vCont?#49...Packet received: vCont;c;s
> Packet vCont (verbose-resume) is NOT supported
>
> What is the minimal set of actions required to support
> vCont in GDB RSP ?
>
>
> Thanks.
> --
> Mathieu Tarral
Hi Mathieu,
Sorry for the late reply, but I thought it would be better than no reply
at all.
I don't think there is a clear spec about that. The implementation of
GDB is the closest thing to a source of truth that you'll get.
In remote.c, in remote_target::remote_vcont_probe (), I see
/* If c, and C are not all supported, we can't use vCont.
Clearing
BUF will make packet_ok disable the packet. */
if (!support_c || !support_C)
buf[0] = 0;
So I guess GDB wants you to support C (or claim you support C) in order
to use vCont.
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-11 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23 10:17 Minimum set of actions to support vCont Mathieu Tarral
2018-12-11 17:01 ` Simon Marchi
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).