This is the mail archive of the
mailing list for the GDB project.
Re: [PATCH]: New maintainer command "flushregs"
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [PATCH]: New maintainer command "flushregs"
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Mon, 11 Sep 2000 12:27:43 +0000
- CC: Michael Snyder <msnyder at redhat dot com>, gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat Canada Ltd. - Toronto
- References: <39AFEEC4.37C9@redhat.com> <39B3934E.42D54F24@cygnus.com>
Andrew Cagney wrote:
> Michael Snyder wrote:
> > I added this to help with testing register fetch and store.
> > 2000-09-01 Michael Snyder <email@example.com>
> > * regcache.c (reg_flush_command): New function. Maintainer-mode
> > command, flushes GDB's register cache, for testing purposes.
> Could I suggest something like ``maint flush registers'' so that ``maint
> flush cache'' is also available (or ``maint registers flush'' if you
> want to turn it around :-).
Furthermore, the command is not flushing the cache. It is "invalidating it".
Flush the cache would mean that all things that have been changed would be written
back as well.
Of course we implement a write through cache, so we have nothing to write. But IMO we
should keep the name consistent. reg_cache_invalidate_command() and "invregcache"
would be more accurate.
But the command is useful and I would like to call the function from a "hreset" command
I have to implement.
Red Hat Canada Ltd. E-Mail: firstname.lastname@example.org
2323 Yonge Street, Suite #300 Tel: 416-482-2661 ext. 311
Toronto, Ontario M4P 2C9 Fax: 416-482-6299