This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] RISC-V GDB Port
- From: Palmer Dabbelt <palmer at dabbelt dot com>
- To: palves at redhat dot com
- Cc: qiyaoltc at gmail dot com
- Cc: Andrew Waterman <andrew at sifive dot com>
- Cc: gdb-patches at sourceware dot org
- Cc: amodra at gmail dot com
- Date: Wed, 16 Nov 2016 11:40:41 -0800 (PST)
- Subject: Re: [PATCH 1/2] RISC-V GDB Port
- Authentication-results: sourceware.org; auth=none
On Wed, 16 Nov 2016 11:36:29 PST (-0800), palves@redhat.com wrote:
> On 11/14/2016 10:39 PM, Palmer Dabbelt wrote:
>>>> >> +
>>>> >> + /* Check any target description for validity. */
>>>> >> + if (tdesc_has_registers (info.target_desc))
>>>> >> + {
>>> >
>>> > We don't have riscv target description yet.
>> Yes. I'm amenable to adding one, but I'm not sure how.
>>
>
> You should really add them. Take a look at the ARC port,
> which was recently added:
>
> https://sourceware.org/ml/gdb-patches/2016-09/msg00248.html
Great, thanks -- I was looking for .dtd files, not .xml files. From looking at
their port, it looks like I want to add a
gdb/features/riscv.xml
patterned off of
gdb/features/arc-v2.xml
It looks like there's a whole bunch of examples in there, so if I'm on the
right track I can probably figure it out.