From 23cee5b2f081b65bc9c7bf6a1a23e20fdcb0156b Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Sat, 9 Oct 2010 21:34:56 +0200 Subject: [PATCH] dwarflint: Change reloc_target signature - leave the body as is for the time being --- dwarflint/check_debug_info.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; -- 2.47.2