Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@wdc.com>
To: Jim Wilson <jimw@sifive.com>
Cc: Vincent Chen <vincent.chen@sifive.com>,
	gdb@sourceware.org,     Paul Walmsley <paul.walmsley@sifive.com>
Subject: Re: RISC-V: Is it reasonable to extend current target_description for KGDB?
Date: Wed, 16 Oct 2019 13:21:00 -0000	[thread overview]
Message-ID: <alpine.LFD.2.21.1910161412390.2438@redsun52.ssa.fujisawa.hgst.com> (raw)
In-Reply-To: <CAFyWVaZdYOAXgZJDP7BLQjX8Bp0kUyquyW0wFQV5ftXZGR85og@mail.gmail.com>

On Tue, 15 Oct 2019, Jim Wilson wrote:

> One possible solution is to add a RISC-V specific command to choose
> the register set used for the default p packet.  That way, if there
> are problems with adding registers to it, people have the option to
> switch back to the old way.  We already have the "set riscv
> use-compressed-breakpoints [auto|on|off]" command.  So we could add a
> similar command to choose the number of registers in the default p
> packet, try changing the default to the full 36 register set, and wait
> to see who complains.  People that complain can be told about the
> command to switch back to the old 32 (33?) register set.

 There's such a generic command already available:

(gdb) set tdesc filename ...

 NB, this has nothing to do with the use of `g'/`G' vs `p'/`P' packets, 
both use the same register indices; for the overlapping part, that is of 
course.  Then no heuristics can cover registers outside the range of the 
`g'/`G' packets of course, an XML description does have to be provided for 
those registers to be recognised.

  Maciej


  reply	other threads:[~2019-10-16 13:21 UTC|newest]

Thread overview: 5+ 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 [this message]
2019-10-16 10:03 ` Pedro Alves
2019-10-16 13:17   ` Maciej W. Rozycki

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.1910161412390.2438@redsun52.ssa.fujisawa.hgst.com \
    --to=macro@wdc.com \
    --cc=gdb@sourceware.org \
    --cc=jimw@sifive.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