aboutsummaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_stoptheworld_mac.cc
blob: 047472a657a64ed6ec3ea04e0b4097317108d370 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//===-- sanitizer_stoptheworld_mac.cc -------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// See sanitizer_stoptheworld.h for details.
//
//===----------------------------------------------------------------------===//

#include "sanitizer_platform.h"

#if SANITIZER_MAC && (defined(__x86_64__) || defined(__aarch64__) || \
                      defined(__mips64) || defined(__i386))

#include "sanitizer_stoptheworld.h"

namespace __sanitizer {
void StopTheWorld(StopTheWorldCallback callback, void *argument) {
  CHECK(0 && "unimplemented");
}

PtraceRegistersStatus SuspendedThreadsList::GetRegistersAndSP(uptr index,
                                                              uptr *buffer,
                                                              uptr *sp) const {
  CHECK(0 && "unimplemented");
  return REGISTERS_UNAVAILABLE_FATAL;
}

uptr SuspendedThreadsList::RegisterCount() {
  CHECK(0 && "unimplemented");
  return 0;
}
} // namespace __sanitizer

#endif  // SANITIZER_MAC && (defined(__x86_64__) || defined(__aarch64__)) ||
        //                   defined(__mips64) || defined(__i386))