[lldb-dev] [PATCH] Re: Linux build failure.

dawn at burble.org dawn at burble.org
Fri Apr 20 00:30:06 PDT 2012


The attached patch seems to fix things for me.

-Dawn
On Wed, Apr 04, 2012 at 02:23:46PM -0700, Bill Wendling wrote:
> There is a new function added to an abstract virtual class:
> 
> 	getPointerToNamedFunction
> 
> This needs to be added to the RecordingMemoryManager class.
> 
> -bw
> 
> On Apr 3, 2012, at 5:54 PM, Sean Silva wrote:
> 
> > I'm getting a build failure (and otherwise quite nasty build) on Linux (ubuntu).
> > 
> > The error that is stopping the build is:
> > ClangExpressionParser.cpp:564:54: error: allocating an object of abstract class
> >       type 'RecordingMemoryManager'
> >     RecordingMemoryManager *jit_memory_manager = new RecordingMemoryManager();
> >                                                      ^
> > 
> > I'm also getting a boatload of warnings from Clang.
> > At a glance, it seems like most of them are
> > - Clang complaining about `%llx` format specifiers, suggesting `%lx` for addr_t, uint64_t, break_id_t, tid_t, user_id_t, and possibly others
> > - Clang complaining about default cases when all cases are covered.
> > - conflict between /usr/include/python2.7/pyconfig.h #defining _XOPEN_SOURCE 600 while /usr/include/features.h #defining _XOPEN_SOURCE 700
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
Index: include/lldb/Expression/RecordingMemoryManager.h
===================================================================
--- include/lldb/Expression/RecordingMemoryManager.h	(revision 155186)
+++ include/lldb/Expression/RecordingMemoryManager.h	(working copy)
@@ -84,6 +84,15 @@
     //------------------------------------------------------------------
     /// Passthrough interface stub
     //------------------------------------------------------------------
+    virtual void *getPointerToNamedFunction(const std::string &Name,
+                                            bool AbortOnFailure)
+    {
+        return m_default_mm_ap->getPointerToNamedFunction(Name, AbortOnFailure);
+    }
+
+    //------------------------------------------------------------------
+    /// Passthrough interface stub
+    //------------------------------------------------------------------
     virtual void AllocateGOT()
     {
         m_default_mm_ap->AllocateGOT();
@@ -399,3 +408,6 @@
 } // namespace lldb_private
 
 #endif  // lldb_RecordingMemoryManager_h_
+
+:301
+:q


More information about the lldb-dev mailing list