From: Petr Machata Date: Tue, 7 Sep 2010 13:19:47 +0000 (+0200) Subject: dwarflint: Drop code from check_debug_line that's now in check_debug_info_refs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ed27fdb82c2b21ca7d7ee2bf7f888e425cd99f0;p=thirdparty%2Felfutils.git dwarflint: Drop code from check_debug_line that's now in check_debug_info_refs - and also adjust the documentation --- diff --git a/dwarflint/check_debug_line.cc b/dwarflint/check_debug_line.cc index fad96523e..7445fe74d 100644 --- a/dwarflint/check_debug_line.cc +++ b/dwarflint/check_debug_line.cc @@ -60,9 +60,8 @@ check_debug_line::descriptor () " other instruction\n" " - that relocations are valid. In ET_REL files that certain fields\n" " are relocated\n" -"Furthermore, if .debug_info is valid, it is checked:\n" -" - that each line table is used by some CU\n" -" - that the line table references at CUs point to actual line tables\n" +"Furthermore, if .debug_info is valid, it is checked that each line\n" +"table is used by some CU.\n" "TODOs:\n" " - overlaps in defined addresses are probably OK, one instruction can\n" " be derived from several statements. But certain flags in table\n" @@ -614,13 +613,4 @@ check_debug_line::check_debug_line (checkstack &stack, dwarflint &lint) relocation_skip_rest (&_m_sec->sect.rel, _m_sec->sect.id); else throw check_base::failed (); - - if (_m_info != NULL) - for (std::vector::iterator it = _m_info->cus.begin (); - it != _m_info->cus.end (); ++it) - if (it->stmt_list.addr != (uint64_t)-1 - && _m_line_tables.find (it->stmt_list.addr) != _m_line_tables.end ()) - wr_error (it->stmt_list.who) - << "unresolved reference to .debug_line table " - << pri::hex (it->stmt_list.addr) << '.' << std::endl; }