]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/valgrind/src/valgrind-3.6.0-svn/coregrind/l4re/vcap.cpp
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / coregrind / l4re / vcap.cpp
index 9497c3cd21d6a357d885539aa93f15ae9e85486b..dddf8f39038f358748c38affe82b2e67e77ca474 100644 (file)
 
 
 __BEGIN_DECLS
-#include "pub_core_basics.h"
 #include "pub_l4re.h"
 #include "pub_l4re_consts.h"
+#include "pub_core_basics.h"
 #include "pub_core_ume.h"
 #include "pub_core_aspacemgr.h"
 #include "pub_core_debuginfo.h"  //DebugInfo
 #include "pub_tool_libcbase.h"
 #include "pub_tool_libcfile.h"
 #include "pub_core_libcprint.h"
+__END_DECLS
+// HACK:
+// We include all the pub* headers as C declarations to work around a huge
+//   bunch of C++ warnings. However, pub_core_vki.h really contains a template
+//   definition, so we need to include it as proper C++ header.
 #include "pub_core_vki.h"
+__BEGIN_DECLS
+#include "pub_core_libcsetjmp.h"
 #include "pub_core_threadstate.h"
 #include "pub_core_scheduler.h"
 #include "pub_core_tooliface.h"
@@ -648,7 +655,7 @@ class rm
                 enter_kdebug("detach_area");
             }
 
-            VG_(debugLog)(4, "vcap", "area: %08lx - %08lx\n", info->_start, info->_end);
+            VG_(debugLog)(4, "vcap", "detach area: %08lx - %08lx\n", info->_start, info->_end);
             NSegment *seg = const_cast<NSegment*>(VG_(am_find_nsegment)(info->_start));
             /*
              * Run through all segments within the area and unmap them if they are
@@ -743,11 +750,25 @@ class rm
             return NULL;
         }
 
+        Node lower_bound(Region const &) const throw()
+        {
+            enter_kdebug("lower_bound");
+            return NULL;
+        }
+
+        Node lower_bound_area(Region const &) const throw()
+        {
+            enter_kdebug("lower_bound_area");
+            return NULL;
+        }
+
         void get_lists( l4_addr_t) const throw()
         {
             enter_kdebug("get_lists");
         }
 
+        l4_addr_t max_addr() const { return ~0UL; }
+
 
 };