From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: GDB Patches Subject: Re: [rfc] Regcache revamp (vip) Date: Mon, 19 Mar 2001 11:59:00 -0000 Message-id: <3AB6652F.1302DAF@cygnus.com> References: <3AB2CE20.4AC725CF@cygnus.com> X-SW-Source: 2001-03/msg00355.html > 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