forked from OSchip/llvm-project
[FreeBSD] Enable procmaps on FreeBSD.
This is not the final patch for procmaps, but it's enough for building sanitizers and tests on FreeBSD. Patch by Viktor Kutuzov! llvm-svn: 203099
This commit is contained in:
parent
f7c1b16591
commit
d52b9ba38d
|
@ -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 @@ class MemoryMappingLayout {
|
|||
|
||||
// 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_;
|
||||
|
||||
|
|
Loading…
Reference in New Issue