From: Petr Machata Date: Tue, 10 Feb 2009 03:07:33 +0000 (+0100) Subject: Check ultimate form, not a form stored at abbreviation (may be INDIRECT) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05a5cae455d2cbf7614e4a33eab235266d38a97b;p=thirdparty%2Felfutils.git Check ultimate form, not a form stored at abbreviation (may be INDIRECT) --- diff --git a/src/dwarflint.c b/src/dwarflint.c index 4e3f21e2e..b84e1c9c9 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -2389,7 +2389,7 @@ read_die_chain (struct read_ctx *ctx, if (!read_ctx_read_offset (ctx, addr_64, &addr)) goto cant_read; - if (it->form == DW_FORM_ref_addr) + if (form == DW_FORM_ref_addr) record_ref (addr, &where, false); else if ((abbrev->tag == DW_TAG_compile_unit || abbrev->tag == DW_TAG_partial_unit) @@ -2409,7 +2409,7 @@ read_die_chain (struct read_ctx *ctx, if (it->name == DW_AT_sibling) sibling_addr = value; - else if (it->form == DW_FORM_ref_udata) + else if (form == DW_FORM_ref_udata) record_ref (value, &where, true); break; } @@ -2424,7 +2424,7 @@ read_die_chain (struct read_ctx *ctx, if (it->name == DW_AT_sibling) sibling_addr = value; - else if (it->form == DW_FORM_ref1) + else if (form == DW_FORM_ref1) record_ref (value, &where, true); break; } @@ -2438,7 +2438,7 @@ read_die_chain (struct read_ctx *ctx, if (it->name == DW_AT_sibling) sibling_addr = value; - else if (it->form == DW_FORM_ref2) + else if (form == DW_FORM_ref2) record_ref (value, &where, true); break; } @@ -2464,7 +2464,7 @@ read_die_chain (struct read_ctx *ctx, = check_locptr ? &cu->loc_refs : &cu->range_refs; ref_record_add (ref, value, &where); } - else if (it->form == DW_FORM_ref4) + else if (form == DW_FORM_ref4) record_ref (value, &where, true); break; } @@ -2490,7 +2490,7 @@ read_die_chain (struct read_ctx *ctx, = check_locptr ? &cu->loc_refs : &cu->range_refs; ref_record_add (ref, value, &where); } - else if (it->form == DW_FORM_ref8) + else if (form == DW_FORM_ref8) record_ref (value, &where, true); break; } @@ -2556,7 +2556,7 @@ read_die_chain (struct read_ctx *ctx, default: wr_error (&where, - ": internal error: unhandled form 0x%x\n", it->form); + ": internal error: unhandled form 0x%x\n", form); } }