From: Andrew Cagney <ac131313@cygnus.com>
To: David Taylor <taylor@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] regcache.c (register_fetched) + related changes
Date: Fri, 02 Mar 2001 09:06:00 -0000 [thread overview]
Message-ID: <3A9FD265.E706A7D4@cygnus.com> (raw)
In-Reply-To: <200103020058.TAA18595@texas.cygnus.com>
> Can you give an example of where this is happening? I'm currently aware
> of two cases:
>
> [0 .. NUM_REGS)
> where supply_register() should be used
>
> Not always. See below.
>
> [NUM_REGS .. NUM_REGS + PSEUDO_NUM_REGS)
> I suspect your case.
>
> I *clear* in the [NUM_REGS, NUM_REGS+PSEUDO_NUM_REGS) range and *set*
> in the [0, NUM_REGS) range.
The code that sets the valid bit in the range [0, NUM_REGS) should be
doing so using either of the functions:
supply_register() - target side
or write_register_gen() - core-gdb side
if it isn't it is doing something un-documented and so, in my opinion,
should use a function that makes the use of that un-documented behavour
very clear.
Hence, in your case, I think your code really should be using a function
called something like deprecated_raw_register_fetched().
If I commit a change that replaces register_valid[] with the pair:
deprecated_raw_register_fetched()
pseudo_register_fetched()
will this allow your existing code to work?
Looking to the future, when (not if) the frame code is re-vamped to have
register values bound to a frame, will it be possible to use that
mechanism to implement what you're trying to do how using the regcache?
Andrew
next prev parent reply other threads:[~2001-03-02 9:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-01 16:59 David Taylor
2001-03-02 9:06 ` Andrew Cagney [this message]
2001-03-02 11:49 ` Andrew Cagney
2001-03-13 8:52 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2001-03-01 10:34 David Taylor
2001-03-01 14:07 ` Andrew Cagney
2001-02-28 13:14 David Taylor
2001-02-28 15:17 ` Andrew Cagney
2001-02-28 16:01 ` Andrew Cagney
2001-02-28 18:27 ` Andrew Cagney
2001-02-27 15:27 David Taylor
2001-02-27 14:25 David Taylor
2001-02-27 14:48 ` Michael Snyder
2001-02-27 15:21 ` Andrew Cagney
2001-02-27 17:40 ` Andrew Cagney
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=3A9FD265.E706A7D4@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=taylor@cygnus.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