From: "Maciej W. Rozycki" <macro@wdc.com>
To: Pedro Alves <palves@redhat.com>
Cc: Vincent Chen <vincent.chen@sifive.com>,
gdb@sourceware.org, Paul Walmsley <paul.walmsley@sifive.com>,
Jim Wilson <jimw@sifive.com>
Subject: Re: RISC-V: Is it reasonable to extend current target_description for KGDB?
Date: Wed, 16 Oct 2019 13:17:00 -0000 [thread overview]
Message-ID: <alpine.LFD.2.21.1910161400190.2438@redsun52.ssa.fujisawa.hgst.com> (raw)
In-Reply-To: <be042497-7269-1b07-ea6b-d76fed813b99@redhat.com>
On Wed, 16 Oct 2019, Pedro Alves wrote:
> > I am a Linux developer and trying to add the KGDB support to the
> > RISC-V Linux. During the porting, I encountered a GDB issue with the
> > 'g' packet. I hope the GDB experts can give me some advice.
> > The KGDB is a debugger provided by the kernel for users to debug
> > kernel space through GDB. To parse the GDB packets, the KGDB has a
> > simple gdb stub. However, this gdb stub does not support the
> > "qSupported" packet.
>
> I don't understand the resistance to just adding the support.
> It is not complicated, and would surely end up being used to
> negotiate support for other optional features.
Seconded! A while ago I actually had a conversation with Jim and other
RISC-V people as to XML description support in the RISC-V backend and my
understanding has been we had a consensus to make it mandatory for debug
stubs and get that enforced on the GDB side, getting rid of any heuristics
now present for debug stubs with no description support.
For legacy debug stubs (odd to speak of any in the context of RISC-V, an
architecture introduced ~10 years after XML description support has been
added to GDB!) there's always the:
(gdb) set tdesc filename ...
command available to supply XML description information manually.
Maciej
prev parent reply other threads:[~2019-10-16 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 7:43 Vincent Chen
2019-10-15 19:53 ` Jim Wilson
2019-10-16 13:21 ` Maciej W. Rozycki
2019-10-17 7:40 ` Vincent Chen
2019-10-16 10:03 ` Pedro Alves
2019-10-16 13:17 ` Maciej W. Rozycki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.21.1910161400190.2438@redsun52.ssa.fujisawa.hgst.com \
--to=macro@wdc.com \
--cc=gdb@sourceware.org \
--cc=jimw@sifive.com \
--cc=palves@redhat.com \
--cc=paul.walmsley@sifive.com \
--cc=vincent.chen@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).