[PATCH] Enable procmaps on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Tue Mar 4 05:30:18 PST 2014
Hi kcc, samsonov,
This is not the final patch for procmaps, but it's enough for building sanitizers and tests on FreeBSD.
http://llvm-reviews.chandlerc.com/D2937
Files:
lib/sanitizer_common/sanitizer_procmaps.h
Index: lib/sanitizer_common/sanitizer_procmaps.h
===================================================================
--- lib/sanitizer_common/sanitizer_procmaps.h
+++ lib/sanitizer_common/sanitizer_procmaps.h
@@ -20,13 +20,13 @@
namespace __sanitizer {
-#if SANITIZER_LINUX
+#if SANITIZER_FREEBSD || SANITIZER_LINUX
struct ProcSelfMapsBuff {
char *data;
uptr mmaped_size;
uptr len;
};
-#endif // SANITIZER_LINUX
+#endif // SANITIZER_FREEBSD || SANITIZER_LINUX
class MemoryMappingLayout {
public:
@@ -55,7 +55,7 @@
// FIXME: Hide implementation details for different platforms in
// platform-specific files.
-# if SANITIZER_LINUX
+# if SANITIZER_FREEBSD || SANITIZER_LINUX
ProcSelfMapsBuff proc_self_maps_;
char *current_;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2937.1.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140304/8954dc28/attachment.bin>
More information about the llvm-commits
mailing list