]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: More accurate ref in "abbrev has_children, but the chain was empty."
authorPetr Machata <pmachata@redhat.com>
Mon, 30 Mar 2009 13:04:44 +0000 (15:04 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 1 Apr 2009 12:47:58 +0000 (14:47 +0200)
src/dwarflint.c

index c130db9be5491a3406c821a9bf65c521d7305d9f..9cc378478c526d94978de70a9d2854bfad465877 100644 (file)
@@ -692,6 +692,8 @@ struct abbrev
   uint16_t tag;
   bool has_children;
 
+  struct where where;
+
   /* Whether some DIE uses this abbrev.  */
   bool used;
 
@@ -1714,6 +1716,7 @@ abbrev_table_load (struct read_ctx *ctx)
       WIPE (*cur);
 
       cur->code = abbr_code;
+      cur->where = where;
 
       /* Abbreviation tag.  */
       uint64_t abbr_tag;
@@ -3351,6 +3354,8 @@ read_die_chain (struct read_ctx *ctx,
            }
        }
 
+      where.ref = &abbrev->where;
+
       if (abbrev->has_children)
        {
          int st = read_die_chain (ctx, cu, abbrevs, strings,