From: Petr Machata Date: Tue, 7 Dec 2010 12:12:19 +0000 (+0100) Subject: Turn on the sharing_stack X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=387fc2a04a412f562a7672051cad3ec1e0a57221;p=thirdparty%2Felfutils.git Turn on the sharing_stack --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index e1b440f37..51a24b7cd 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,11 @@ +2010-12-07 Petr Machata + + * c++/subr.hh (sharing_stack::element::pop): Remove. Move the + logic to sharing_stack::pop. + * c++/dwarf (debug_info_entry::children_type::const_iterator): Use + sharing_stack instead of stackish. + * c++/dwarf_tracker (dwarf_path_finder): Likewise. + 2010-11-30 Roland McGrath * c++/dwarf (dwarf::directory_table): Remove class. diff --git a/libdw/c++/dwarf b/libdw/c++/dwarf index 1b0336751..085f0f923 100644 --- a/libdw/c++/dwarf +++ b/libdw/c++/dwarf @@ -805,7 +805,7 @@ namespace elfutils private: typedef raw_children_type::const_iterator raw_iterator; - subr::stackish _m_stack; + subr::sharing_stack _m_stack; /* Push and pop until _m_stack.top () == raw_children_type::end () or it's looking at a DIE other than DW_TAG_imported_unit. */ diff --git a/libdw/c++/dwarf_tracker b/libdw/c++/dwarf_tracker index 1281d9b4d..c75ccda24 100644 --- a/libdw/c++/dwarf_tracker +++ b/libdw/c++/dwarf_tracker @@ -96,7 +96,7 @@ namespace elfutils _m_path in _m_seen so that a derived tracker made from path_to "context" can use the right _m_root. */ - typedef subr::stackish die_path; + typedef subr::sharing_stack die_path; private: // We use an empty list as a marker; every path includes at least one DIE.