020264b
2005-02-01  Jeff Johnston  <jjohnstn@redhat.com>
020264b
020264b
        * dwarf2read.c (die_type): Tolerate a type reference to location
020264b
        <0> and treat as unknown type.
020264b
020264b
--- gdb-6.3/gdb/dwarf2read.c.fix	Tue Feb  1 16:48:49 2005
020264b
+++ gdb-6.3/gdb/dwarf2read.c	Tue Feb  1 16:50:12 2005
020264b
@@ -7120,6 +7120,10 @@ die_type (struct die_info *die, struct d
020264b
       /* A missing DW_AT_type represents a void type.  */
020264b
       return dwarf2_fundamental_type (cu->objfile, FT_VOID, cu);
020264b
     }
367b952
+  else if (DW_ADDR (type_attr) == 0)
020264b
+    /* If we have an invalid reference to 0, ignore it and treat
020264b
+       the type as unknown.  */
020264b
+    return builtin_type_error;
020264b
   else
020264b
     type_die = follow_die_ref (die, type_attr, cu);
020264b