From: Petr Machata Date: Sat, 9 Oct 2010 19:34:56 +0000 (+0200) Subject: dwarflint: Change reloc_target signature X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23cee5b2f081b65bc9c7bf6a1a23e20fdcb0156b;p=thirdparty%2Felfutils.git dwarflint: Change reloc_target signature - leave the body as is for the time being --- diff --git a/dwarflint/check_debug_info.cc b/dwarflint/check_debug_info.cc index 29afad640..022c71fe0 100644 --- a/dwarflint/check_debug_info.cc +++ b/dwarflint/check_debug_info.cc @@ -298,16 +298,16 @@ namespace } section_id - reloc_target (uint8_t form, struct abbrev_attrib *at) + reloc_target (form const *form, attribute const *attribute) { - switch (form) + switch (form->name ()) { case DW_FORM_strp: return sec_str; case DW_FORM_addr: - switch (at->name) + switch (attribute->name ()) { case DW_AT_low_pc: case DW_AT_high_pc: @@ -335,7 +335,7 @@ namespace case DW_FORM_data4: case DW_FORM_data8: - switch (at->name) + switch (attribute->name ()) { case DW_AT_stmt_list: return sec_line; @@ -381,8 +381,8 @@ namespace assert (!"Should be handled specially!"); }; - std::cout << "XXX don't know how to handle form=" << pri::form (form) - << ", at=" << pri::attr (at->name) << std::endl; + std::cout << "XXX don't know how to handle form=" << *form + << ", at=" << *attribute << std::endl; return rel_value; } @@ -854,7 +854,7 @@ namespace form_width_t width = form->width (cu); relocate_one (&file, reloc, rel, width, &value, &where, - reloc_target (form_name, it), symbolp); + reloc_target (form, attribute), symbolp); if (relocatedp != NULL) *relocatedp = true;