]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debugging hacks, not to be merged
authorRoland McGrath <roland@redhat.com>
Tue, 31 Aug 2010 08:28:03 +0000 (01:28 -0700)
committerMark Wielaard <mjw@redhat.com>
Fri, 14 Jan 2011 12:07:17 +0000 (13:07 +0100)
libdw/c++/dwarf_comparator
libdw/c++/dwarf_output
libdw/c++/dwarf_tracker

index af0964b9c136db5db379f655504dcbff1c6f7611..98afafc4b92242371838094f03e153d1f9c76005 100644 (file)
@@ -304,6 +304,10 @@ namespace elfutils
 
       inline bool operator () (const ait1 &it1, const ait2 &it2)
       {
+       if (!_m_cmp.equals ((*it1).second, (*it2).second))
+         {
+           asm("nop");
+         }
        return _m_cmp.equals ((*it1).second, (*it2).second);
       }
     };
index b7bbaadc99faeb13ba8a6b63ec9af09a2ec9c868..f01b90ce923c93b0e0703833c9e917a9cdbfb263 100644 (file)
@@ -151,6 +151,12 @@ namespace elfutils
       friend class dwarf_output;
       friend class dwarf_output_collector;
 
+      __attribute__((used)) die_info_pair *info () const
+      {
+       return reinterpret_cast<die_info_pair *>
+         (const_cast<debug_info_entry *> (this));
+      }
+
     public:
       class attributes_type
        : public dwarf_data::attributes_type<dwarf_output, value>
@@ -1632,7 +1638,7 @@ namespace elfutils
        /* XXX disabled! tentative circularity matches taint this record!
           must record taint to avoid caching, or punt caching.
         */
-       //_m_pending->_m_matched = doppleganger;
+       _m_pending->_m_matched = doppleganger;
       }
 
       /* This is called by finalize_children.  In case of imported_unit
index c75ccda2438ede43cab980e7c89537ca15b8f66b..cb14711853864e57a03cd12ea44b0cceb197d616 100644 (file)
@@ -706,15 +706,15 @@ namespace elfutils
       return matched._m_lhs == NULL && matched._m_rhs == NULL;
     }
 
-    inline bool notice_match (reference_match &/*matched*/,
-                             const die1 &, const die2 &/*b*/, bool matches)
+    inline bool notice_match (reference_match &matched,
+                             const die1 &, const die2 &b, bool matches)
     {
       /* XXX not reliable!
         This match could be predicated on a tentative match of a
         circular ref inside.  We can't cache that!
+      */
       if (matches && matched._m_lhs != NULL)
        matched._m_lhs->second.insert (b);
-      */
       return matches;
     }