[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 RESEND 3/7] gdbstub: add support for the qRegisterInfo que
From: |
Matheus Tavares Bernardino |
Subject: |
Re: [PATCH v2 RESEND 3/7] gdbstub: add support for the qRegisterInfo query |
Date: |
Fri, 21 Apr 2023 08:34:20 -0300 |
Alex Bennée <alex.bennee@linaro.org> wrote:
>
> > Matheus Tavares <quic_mathbern@quicinc.com> wrote:
> >
> > diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
> > index be18568d0a..f19f8c58c3 100644
> > --- a/gdbstub/gdbstub.c
> > +++ b/gdbstub/gdbstub.c
> > @@ -1578,6 +1599,12 @@ static const GdbCmdParseEntry gdb_gen_query_table[]
> > = {
> > .handler = handle_query_curr_tid,
> > .cmd = "C",
> > },
> > + {
> > + .handler = handle_query_regs,
> > + .cmd = "RegisterInfo",
> > + .cmd_startswith = 1,
> > + .schema = "l0"
> > + },
>
> Where is this defined in the protocol spec, I can't see it in:
>
>
> https://sourceware.org/gdb/onlinedocs/gdb/General-Query-Packets.html#General-Query-Packets
>
> and it seems to be information that is handled by the xml register
> description. Is there a reason that isn't used for Hexagon?
Good point. It's actually an lldb extension to the protocol:
https://github.com/llvm/llvm-project/blob/main/lldb/docs/lldb-gdb-remote.txt#L573
But indeed, lldb should be able to use the xml register description as
well. I'll take a look and try to do that instead.
Thanks!
- [PATCH v2 RESEND 0/7] Hexagon: add lldb support, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 1/7] gdbstub: only send stop-reply packets when allowed to, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 4/7] Hexagon: support qRegisterInfo at gdbstub, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 5/7] Hexagon (gdbstub): fix p3:0 read and write via stub, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 3/7] gdbstub: add support for the qRegisterInfo query, Matheus Tavares Bernardino, 2023/04/20
- Re: [PATCH v2 RESEND 3/7] gdbstub: add support for the qRegisterInfo query, Philippe Mathieu-Daudé, 2023/04/20
- [PATCH v2 RESEND 2/7] gdbstub: add test for untimely stop-reply packets, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 7/7] Hexagon (linux-user/hexagon): handle breakpoints, Matheus Tavares Bernardino, 2023/04/20
- [PATCH v2 RESEND 6/7] Hexagon (gdbstub): add HVX support, Matheus Tavares Bernardino, 2023/04/20