This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Regcache revamp (vip)
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: [rfc] Regcache revamp (vip)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 19 Mar 2001 14:59:43 -0500
- References: <3AB2CE20.4AC725CF@cygnus.com>
> o The external interfaces
> register[], register_valid[]
> and register_buffer() are
> being documented as deprecated.
> o Other pseudo-register interfaces
> such as STORE_PSEUDO_REG()
> are put in the fireing line.
To update this list. I think the following can be deprecated:
register[]
register_valid[]
register_buffer()
Replaced by, on the target side
supply_register()
and on core-gdb side:
{read,write}_register_gen()
STORE_PSEUDO_REGISTER
FETCH_PSEUDO_REGISTER
Now handed by the methods
gdbarch_{read,write}_register()
which sits between core GDB and
the register cache.
REGISTER_CONVERTIBLE
REGISTER_CONVERT_TO_RAW
REGISTER_CONVERT_TO_VIRTUAL
I think these three are redundant.
gdbarch_register_{read,write} can
do any conversion it likes.
REGISTER_VIRTUAL_SIZE
MAX_REGISTER_VIRTUAL_SIZE
REGISTER_VIRTUAL_TYPE
I think these can be replaced by the
pair:
FRAME_REGISTER_TYPE(frame, regnum)
REGISTER_TYPE(regnum)
Scary!
If something gets deprecated it won't be immediatly deleted. Instead it
will most likely get a rename in a desperate attempt to stop people
cloning it :-)
Andrew