From: Andrew Cagney Date: Sat, 14 Feb 2004 22:23:46 +0000 (+0000) Subject: 2004-02-14 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e1f669a84a13c5fa7ac7f03aa2c43c0f14cb711;p=binutils-gdb.git 2004-02-14 Andrew Cagney * arch-utils.c (legacy_convert_register_p): Check DEPRECATED_REGISTER_CONVERTIBLE_P. * findvar.c (value_of_register): Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b35e1691daa..c46a241de8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-02-14 Andrew Cagney + * 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. diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index f567a55c3a1..09fc52cf13f 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -317,7 +317,8 @@ legacy_pc_in_sigtramp (CORE_ADDR pc, char *name) 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 diff --git a/gdb/findvar.c b/gdb/findvar.c index b5929fa99fc..e737bc30d12 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -284,7 +284,8 @@ value_of_register (int regnum, struct frame_info *frame) /* 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));