From: Roland McGrath Date: Tue, 27 Jan 2009 00:55:43 +0000 (-0800) Subject: Fix dwarf::range_list iterator initialization. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60e0d5db39b7e9842043d24f38d48b402b3f3473;p=thirdparty%2Felfutils.git Fix dwarf::range_list iterator initialization. --- diff --git a/libdw/c++/dwarf b/libdw/c++/dwarf index 36535a8e3..d4aa9b888 100644 --- a/libdw/c++/dwarf +++ b/libdw/c++/dwarf @@ -248,7 +248,6 @@ namespace elfutils return known_name (code); } - private: // XXX make this an instance method to include irritant context static void throw_libdw (void) // XXX raises (...) @@ -985,7 +984,7 @@ namespace elfutils return string (); } - const class source_file source_file () const; + const dwarf::source_file source_file () const; // XXX reloc ::Dwarf_Word constant () const; @@ -1124,7 +1123,8 @@ namespace elfutils public: inline const_iterator (const const_iterator &i) - : _m_base (i._m_base), _m_cu (i._m_cu), _m_offset (i._m_offset) {} + : _m_base (i._m_base), _m_begin (i._m_begin), _m_end (i._m_begin), + _m_cu (i._m_cu), _m_offset (i._m_offset) {} inline value_type operator* () const { @@ -1200,9 +1200,9 @@ namespace elfutils inline bool operator== (const ranges &other) const { /* Our container is unordered (i.e., in file order). A range list - is conceptually equal if all the pairs match, regardless of the - order. But the std::equal algorithm will compare corresponding - elements in order. So we need an ordered set for comparison. */ + is conceptually equal if all the pairs match, regardless of the + order. But the std::equal algorithm will compare corresponding + elements in order. So we need an ordered set for comparison. */ const std::set mine = *this; const std::set his = other; return mine == his;