]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Turn on the sharing_stack
authorPetr Machata <pmachata@redhat.com>
Tue, 7 Dec 2010 12:12:19 +0000 (13:12 +0100)
committerPetr Machata <pmachata@redhat.com>
Tue, 7 Dec 2010 12:12:19 +0000 (13:12 +0100)
libdw/ChangeLog
libdw/c++/dwarf
libdw/c++/dwarf_tracker

index e1b440f3739075c6ad56dc9ee9cf8f34d0649e9b..51a24b7cdad9af59dff5b014b827a98f8140d005 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-07  Petr Machata  <pmachata@redhat.com>
+
+       * 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  <roland@redhat.com>
 
        * c++/dwarf (dwarf::directory_table): Remove class.
index 1b03367517873cb0f73f606e9e5515b47698d4d3..085f0f9232b0d572049f2d00a1e46b73884b70d7 100644 (file)
@@ -805,7 +805,7 @@ namespace elfutils
       private:
 
        typedef raw_children_type::const_iterator raw_iterator;
-       subr::stackish<raw_iterator> _m_stack;
+       subr::sharing_stack<raw_iterator> _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.  */
index 1281d9b4dcb83c475129d71f7f4778f54f0cc4c9..c75ccda2438ede43cab980e7c89537ca15b8f66b 100644 (file)
@@ -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> die_path;
+    typedef subr::sharing_stack<die> die_path;
 
   private:
     // We use an empty list as a marker; every path includes at least one DIE.