From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <kettenis@gnu.org>, jimb@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Support libthread_db xregs interface
Date: Fri, 27 Aug 2004 16:27:00 -0000 [thread overview]
Message-ID: <412F606B.2050003@gnu.org> (raw)
In-Reply-To: <200408260938.i7Q9ceac000020@juw15.nfra.nl>
> Sender: jimb@zenia.home
> Cc: gdb-patches@sources.redhat.com
> From: Jim Blandy <jimb@redhat.com>
> Date: 25 Aug 2004 00:07:07 -0500
>
> Andrew Cagney <cagney@gnu.org> writes:
> > > + v:=:const struct regset *:xregs_regset:::0
> >
> > Mark's regset change added both the "regset.h" object and the
> > regset_from_core_section architecture method. They, together, replace
> > the old *-nat.c:fill_regset et.al. calls.
> >
> > Can we implement the equivalent here for ptrace/thread-db?
>
> Not sure what you mean. This change lets a gdbarch object specify a
> regset which the libthread_db support code will then use to read and
> write additional registers beyond those covered by gregset_t and
> fpregset_t. So this change does provide a regset.h-style regset for
> libthread_db. That's what you're looking for, right?
>
> I'm not sure, but I presume Andrew is asking you to implement a
> regset_from_xxx function for use by ptrace/thread-db, instead of
> explicitly adding the xregset to the architecture vector. Your
> current patch leaves the supply_gregset() and supply_fpregset() calls
> as they are. That's fine for now, but in the long run they'll have to
> be replaced with regset stuff too. By using a regset_from_xxx
> function we only need a single entry in the architecture vector,
> instead of three (or even more).
Right.
For the architecture vector, its clear that we already need some sort of
regset_from_xxx method that covers all the regsets. I can imagine it
being a function parameterized with an ``enum regset_type'', or an array
variable indexed by the same, or even parameterized with a reggroup (but
that's getting weird :-). Which ever. With this in place we can
deprecate / eliminate supply_regset et.al..
How much of the thread-db should be done now. That's MichaelS/MarkKs
call. However it is a relatively straight forward task - just lift the
code from corelow.c.
can we do that?
Andrew
prev parent reply other threads:[~2004-08-27 16:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-12 23:39 Jim Blandy
2004-08-23 20:40 ` Andrew Cagney
2004-08-25 5:07 ` Jim Blandy
2004-08-26 9:40 ` Mark Kettenis
2004-08-27 16:27 ` Andrew Cagney [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=412F606B.2050003@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=kettenis@gnu.org \
/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