* arch-utils.c (legacy_convert_register_p): Check
DEPRECATED_REGISTER_CONVERTIBLE_P.
* findvar.c (value_of_register): Ditto.
2004-02-14 Andrew Cagney <cagney@redhat.com>
+ * arch-utils.c (legacy_convert_register_p): Check
+ DEPRECATED_REGISTER_CONVERTIBLE_P.
+ * findvar.c (value_of_register): Ditto.
+
* gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* arch-utils.c (deprecated_register_convertible_not): Delete.
int
legacy_convert_register_p (int regnum, struct type *type)
{
- return DEPRECATED_REGISTER_CONVERTIBLE (regnum);
+ return (DEPRECATED_REGISTER_CONVERTIBLE_P ()
+ && DEPRECATED_REGISTER_CONVERTIBLE (regnum));
}
void
/* Convert raw data to virtual format if necessary. */
- if (DEPRECATED_REGISTER_CONVERTIBLE (regnum))
+ if (DEPRECATED_REGISTER_CONVERTIBLE_P ()
+ && DEPRECATED_REGISTER_CONVERTIBLE (regnum))
{
DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, register_type (current_gdbarch, regnum),
raw_buffer, VALUE_CONTENTS_RAW (reg_val));