2004-02-14 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 14 Feb 2004 22:23:46 +0000 (22:23 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 14 Feb 2004 22:23:46 +0000 (22:23 +0000)
* arch-utils.c (legacy_convert_register_p): Check
DEPRECATED_REGISTER_CONVERTIBLE_P.
* findvar.c (value_of_register): Ditto.

gdb/ChangeLog
gdb/arch-utils.c
gdb/findvar.c

index b35e1691daa86618960ddf972fedfc5d5ff322f4..c46a241de8a3f039beea388c5b26285c384a8cfe 100644 (file)
@@ -1,5 +1,9 @@
 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.
index f567a55c3a154c6f120c6677da3488fc8c7d8a22..09fc52cf13f008b7f447b7de8d2fc1716e08147e 100644 (file)
@@ -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
index b5929fa99fc1d9acadf1aeb75a7c8dcc204a07ae..e737bc30d12a4f0137ac8eb3258b89651c782d12 100644 (file)
@@ -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));