Compare VALUE_ADDRESS() return value with ZERO not NULL.
authorAndrew Cagney <cagney@redhat.com>
Sun, 9 Apr 2000 13:02:10 +0000 (13:02 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 9 Apr 2000 13:02:10 +0000 (13:02 +0000)
gdb/ChangeLog
gdb/valops.c

index 320506dfc57dec16ca039f3ea039e74f59d8a516..5a05271d147d008e57781c8bd120a82c3ff9f9e6 100644 (file)
@@ -1,3 +1,8 @@
+Sun Apr  9 22:54:29 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * valops.c (value_rtti_type): Compare VALUE_ADDRESS with ``0'' not
+       NULL. Macro returns a CORE_ADDR.
+
 2000-04-08  Jim Blandy  <jimb@redhat.com>
 
        * dwarf2read.c: Revert Andrew Cagney's change of Dec 15, 1997.
index bfbffa982f4b3a50f5be78d8dbdbeb95a32fd68a..a99ad1c8f8db83ba2a4e7f1cac46d51f822aaafa 100644 (file)
@@ -3358,7 +3358,7 @@ value_rtti_type (v, full, top, using_enc)
        we'd waste a bunch of time figuring out we already know the type.
         Besides, we don't care about the type, just the actual pointer
       */
-      if (VALUE_ADDRESS(value_field(v,TYPE_VPTR_FIELDNO(known_type))) == NULL)
+      if (VALUE_ADDRESS (value_field (v, TYPE_VPTR_FIELDNO (known_type))) == 0)
        return NULL;
 
       /*