Change dwarf2_attr_no_follow to be a method
[deliverable/binutils-gdb.git] / gdb / dwarf2 / die.h
index f8826a276e8b700b86f21a2074fcca11a778ecd7..3a265b7df03ec3d4bb0f932b2f1890d9be508cb4 100644 (file)
 /* This data structure holds a complete die structure.  */
 struct die_info
 {
+  /* Return the named attribute or NULL if not there, but do not
+     follow DW_AT_specification, etc.  */
+  struct attribute *attr (dwarf_attribute name)
+  {
+    for (unsigned i = 0; i < num_attrs; ++i)
+      if (attrs[i].name == name)
+       return &attrs[i];
+    return NULL;
+  }
+
+
   /* DWARF-2 tag for this DIE.  */
   ENUM_BITFIELD(dwarf_tag) tag : 16;
 
This page took 0.024495 seconds and 4 git commands to generate.