From: Michael Snyder <msnyder@cygnus.com>
To: David Taylor <taylor@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] regcache.c (register_fetched) + related changes
Date: Tue, 27 Feb 2001 14:48:00 -0000 [thread overview]
Message-ID: <3A9C2C15.1E19BE7C@cygnus.com> (raw)
In-Reply-To: <200102272224.RAA15833@texas.cygnus.com>
David Taylor wrote:
>
> Right now, we have:
>
> . void register_changed (int regnum)
> ==> invalidates a single register REGNUM in the cache.
>
> . void registers_changed (void)
> ==> indicate that registers may have changed, so invalidate the
> cache.
>
> . void registers_fetched (void)
> ==> indicate that all registers have been fetched, so mark them
> all valid.
>
> But, we don't have:
>
> . void register_fetched (int regnum)
> ==> indicate that register REGNUM has been fetched.
>
> I propose that we:
>
> . add register_fetched
>
> . change all the files that say
> "register_valid[foo] = 1;" to instead say "register_fetched (foo);"
>
> . change all the files that say
> "register_valid[foo] = 0;" to instead say "register_changed (foo);"
>
> . change all the files that say
> "if (register_valid[regno])" or "if (!register_valid[regno])"
> to instead say
> "if (register_cached (regno))" or "if (!register_cached (regno))"
>
> The following diff gets rid of all but 3 references to register_valid
> from outside of regcache.c by *.c files from within the gdb directory.
>
> Okay to commit?
Hmmm... I can't approve all of the changes to various target and native
files, but as the original author of regcache.c I whole-heartedly approve
the change in general.
>
> ChangeLog:
>
> Tue Feb 27 16:59:10 2001 David Taylor <taylor@redhat.com>
>
> * regcache.c (register_fetched): New function.
> * gdbcore.h (register_fetched): Declare it.
> * alpha-nat.c (fetch_elf_core_registers): Replace references to
> register_valid with appropriate function calls.
> * arm-linux-nat.c (store_nwfpe_register, store_fpregister,
> store_fpregs, store_register, store_regs, fill_gregset,
> fill_fpregset): Ditto.
> * i386gnu-nat.c (gnu_store_registers): Ditto.
> * ia64-aix-nat.c (supply_gregset): Ditto.
> * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
> Ditto.
> * remote-mips.c (mips_load): Ditto.
> * remote-uid.c (udi_fetch_registers, store_register): Ditto.
> * rs6000-nat.c (fetch_register): Ditto.
> * sh-tdep.c (sh_fetch_pseudo_register, sh_store_pseudo_register):
> Ditto.
> * sparc-nat.c (fetch_inferior_registers,
> store_inferior_registers): Ditto.
[diffs pruned for bandwidth]
next prev parent reply other threads:[~2001-02-27 14:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-27 14:25 David Taylor
2001-02-27 14:48 ` Michael Snyder [this message]
2001-02-27 15:21 ` Andrew Cagney
2001-02-27 17:40 ` Andrew Cagney
2001-02-27 15:27 David Taylor
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-03-01 10:34 David Taylor
2001-03-01 14:07 ` Andrew Cagney
2001-03-01 16:59 David Taylor
2001-03-02 9:06 ` Andrew Cagney
2001-03-02 11:49 ` Andrew Cagney
2001-03-13 8:52 ` 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=3A9C2C15.1E19BE7C@cygnus.com \
--to=msnyder@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