Fix check_constant_offset braino.
authorRoland McGrath <roland@redhat.com>
Wed, 23 Jun 2010 00:08:43 +0000 (17:08 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 23 Jun 2010 00:08:43 +0000 (17:08 -0700)
libdw/ChangeLog
libdw/dwarf_getlocation.c

index 5d274cb..1765858 100644 (file)
@@ -1,5 +1,7 @@
 2010-06-22  Roland McGrath  <roland@redhat.com>
 
+       * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
+
        * dwarf_getsrclines.c: Fix signed comparison warning in extended
        opcode parsing.
 
index 56091cd..e960ef9 100644 (file)
@@ -165,16 +165,11 @@ check_constant_offset (Dwarf_Attribute *attr,
 
     case DW_FORM_data1:
     case DW_FORM_data2:
+    case DW_FORM_data4:
+    case DW_FORM_data8:
     case DW_FORM_sdata:
     case DW_FORM_udata:
       break;
-
-    case DW_FORM_data4:
-    case DW_FORM_data8:
-      /* These are loclistptr, not constants.
-        XXX check cu->version > 3???
-      */
-      return 1;
     }
 
   /* Check whether we already cached this location.  */