From: Petr Machata Date: Mon, 30 Mar 2009 13:04:44 +0000 (+0200) Subject: dwarflint: More accurate ref in "abbrev has_children, but the chain was empty." X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e74fbf60e58877bc57fa240458b256047161690f;p=thirdparty%2Felfutils.git dwarflint: More accurate ref in "abbrev has_children, but the chain was empty." --- diff --git a/src/dwarflint.c b/src/dwarflint.c index c130db9be..9cc378478 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -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,