From: "Maciej W. Rozycki" <macro@wdc.com>
To: Simon Marchi <simark@simark.ca>
Cc: "Jim Wilson" <jimw@sifive.com>,
jiangshuai_li@c-sky.com,
"Andrew Burgess" <andrew.burgess@embecosm.com>,
guoren@kernel.org, gdb-patches@sourceware.org,
夏立方 <lifang_xia@c-sky.com>, yunhai_shang <yunhai_shang@c-sky.com>
Subject: Re: [PATCH] riscv: add gdbserver support
Date: Tue, 21 Jan 2020 02:17:00 -0000 [thread overview]
Message-ID: <alpine.LFD.2.21.2001210205300.15714@redsun52.ssa.fujisawa.hgst.com> (raw)
In-Reply-To: <3a15e9f5-099f-3be0-e3f1-0e17c2959158@simark.ca>
On Mon, 20 Jan 2020, Simon Marchi wrote:
> > Offhand I can see the proposal fails to implement XML register
> > descriptions, which I think every modern port is expected to do (we also
> > need to disallow non-XML-enabled RISC-V stubs in GDB proper, as we
> > discussed before; I fail to understand why it wasn't done right away with
> > the initial implementation, as it's quite straightforward and would have
> > set the policy for debug stubs right from the beginning).
>
> I would also expect new ports to use XML target descriptions. And I see
> that there is already code in arch/riscv.c to build target descriptions based
> on detected features... so should gdbserver use it?
Yes, that's what I used with my implementation; a minor change was
required for `riscv_create_target_description' not to return a `const'
result (or `init_target_desc' couldn't be called on it).
Unfortunately the result is not accepted by GDB proper as it does not
know architecture names produced by this code (and native support bypasses
this step as it uses a different code path for XML description setup). I
haven't got to fixing that yet and therefore I have concluded my
`gdbserver' implementation is not ready for upstreaming at this point;
test results, although clearly not catastrophic, are also affected by this
problem I believe.
Maciej
next prev parent reply other threads:[~2020-01-21 2:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 5:01 jiangshuai_li
2020-01-20 23:33 ` Jim Wilson
2020-01-21 0:30 ` Maciej W. Rozycki
2020-01-21 2:13 ` Simon Marchi
2020-01-21 2:17 ` Maciej W. Rozycki [this message]
2020-01-21 13:01 ` Andrew Burgess
2020-01-21 13:28 ` Andrew Burgess
2020-01-21 13:47 ` Andreas Schwab
2020-01-22 0:11 ` Jim Wilson
2020-01-22 0:45 ` Jim Wilson
2020-01-22 10:19 ` Jim Wilson
2020-01-22 14:08 ` Andrew Burgess
2020-01-21 23:56 ` Jim Wilson
2020-01-22 5:26 ` Guo Ren
2020-01-22 6:15 ` Jim Wilson
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.2001210205300.15714@redsun52.ssa.fujisawa.hgst.com \
--to=macro@wdc.com \
--cc=andrew.burgess@embecosm.com \
--cc=gdb-patches@sourceware.org \
--cc=guoren@kernel.org \
--cc=jiangshuai_li@c-sky.com \
--cc=jimw@sifive.com \
--cc=lifang_xia@c-sky.com \
--cc=simark@simark.ca \
--cc=yunhai_shang@c-sky.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