ad4fdd5
--- ./gdb/dwarf2read.c	4 May 2008 17:27:01 -0000	1.260
ad4fdd5
+++ ./gdb/dwarf2read.c	4 May 2008 18:26:20 -0000
ad4fdd5
@@ -6754,7 +6754,14 @@ dwarf2_attr (struct die_info *die, unsig
ad4fdd5
   for (i = 0; i < die->num_attrs; ++i)
ad4fdd5
     {
ad4fdd5
       if (die->attrs[i].name == name)
ad4fdd5
-	return &die->attrs[i];
ad4fdd5
+        {
ad4fdd5
+	  /* GCC PR ada/35998 workaround.  */
ad4fdd5
+	  if (name == DW_AT_byte_size
ad4fdd5
+	      && DW_UNSND (&die->attrs[i]) == 0xffffffff)
ad4fdd5
+	    return NULL;
ad4fdd5
+
ad4fdd5
+	  return &die->attrs[i];
ad4fdd5
+	}
ad4fdd5
       if (die->attrs[i].name == DW_AT_specification
ad4fdd5
 	  || die->attrs[i].name == DW_AT_abstract_origin)
ad4fdd5
 	spec = &die->attrs[i];