OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #include "vm/globals.h" |
| 6 #include "vm/signal_handler.h" |
| 7 #if defined(TARGET_OS_ANDROID) |
| 8 |
| 9 namespace dart { |
| 10 |
| 11 uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) { |
| 12 UNIMPLEMENTED(); |
| 13 } |
| 14 |
| 15 |
| 16 uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) { |
| 17 UNIMPLEMENTED(); |
| 18 } |
| 19 |
| 20 |
| 21 uintptr_t SignalHandler::GetStackPointer(const mcontext_t& mcontext) { |
| 22 UNIMPLEMENTED(); |
| 23 } |
| 24 |
| 25 |
| 26 void SignalHandler::Install(SignalAction action) { |
| 27 UNIMPLEMENTED(); |
| 28 } |
| 29 |
| 30 |
| 31 ScopedSignalBlocker::ScopedSignalBlocker() { |
| 32 sigset_t set; |
| 33 sigemptyset(&set); |
| 34 sigaddset(&set, SIGPROF); |
| 35 pthread_sigmask(SIG_SETMASK, &set, &old_); |
| 36 } |
| 37 |
| 38 |
| 39 ScopedSignalBlocker::~ScopedSignalBlocker() { |
| 40 pthread_sigmask(SIG_SETMASK, &old_, NULL); |
| 41 } |
| 42 |
| 43 } // namespace dart |
| 44 |
| 45 #endif // defined(TARGET_OS_ANDROID) |
OLD | NEW |