3a088e89dd
BUG= Review URL: https://codereview.chromium.org//76723003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30431 260f80e4-7a28-3924-810f-c04153c831b5
47 lines
1022 B
C++
47 lines
1022 B
C++
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "platform/thread.h"
|
|
#include "vm/globals.h"
|
|
#include "vm/signal_handler.h"
|
|
#if defined(TARGET_OS_ANDROID)
|
|
|
|
namespace dart {
|
|
|
|
uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
uintptr_t SignalHandler::GetStackPointer(const mcontext_t& mcontext) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
void SignalHandler::Install(SignalAction action) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
ScopedSignalBlocker::ScopedSignalBlocker() {
|
|
sigset_t set;
|
|
sigemptyset(&set);
|
|
sigaddset(&set, SIGPROF);
|
|
pthread_sigmask(SIG_SETMASK, &set, &old_);
|
|
}
|
|
|
|
|
|
ScopedSignalBlocker::~ScopedSignalBlocker() {
|
|
pthread_sigmask(SIG_SETMASK, &old_, NULL);
|
|
}
|
|
|
|
} // namespace dart
|
|
|
|
#endif // defined(TARGET_OS_ANDROID)
|