This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] Allow all NUM_REGS + NUM_PSEUDO_REGS in the regcache
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 06 Dec 2001 15:52:02 -0500
- Subject: Re: [patch] Allow all NUM_REGS + NUM_PSEUDO_REGS in the regcache
- References: <3C0D54D5.4010209@cygnus.com>
> 2001-12-04 Andrew Cagney <ac131313@redhat.com>
>
> * regcache.c (store_register, fetch_register): Only use fetch/store
> pseudo-register when function is present. Assume target can
> handle all registers.
> (registers_changed): Simplify invalidate loop.
> (registers_fetched): Add comments.
> (register_buffer): Add regnum range assertion. Remove code
> handling -ve regnum.
> (build_regcache): Make space for pseudo-registers when computing
> sizeof_registers. Initialize register_offset.
>
> * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
> predicate.
> (STORE_PSEUDO_REGISTER): Ditto.
> * gdbarch.h, gdbarch.c: Re-generate.
>
I've checked this in.
Andrew