Fix product and Mac build.
BUG= Review URL: https://codereview.chromium.org/2518063008 .
This commit is contained in:
@@ -22,12 +22,12 @@ char* Platform::resolved_executable_name_ = NULL;
|
||||
int Platform::script_index_ = 1;
|
||||
char** Platform::argv_ = NULL;
|
||||
|
||||
|
||||
static void segv_handler(int signal, siginfo_t* siginfo, void* context) {
|
||||
Dart_DumpNativeStackTrace(context);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
bool Platform::Initialize() {
|
||||
// Turn off the signal handler for SIGPIPE as it causes the process
|
||||
// to terminate on writing to a closed pipe. Without the signal
|
||||
|
||||
@@ -28,6 +28,12 @@ char* Platform::resolved_executable_name_ = NULL;
|
||||
int Platform::script_index_ = 1;
|
||||
char** Platform::argv_ = NULL;
|
||||
|
||||
static void segv_handler(int signal, siginfo_t* siginfo, void* context) {
|
||||
Dart_DumpNativeStackTrace(context);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
bool Platform::Initialize() {
|
||||
// Turn off the signal handler for SIGPIPE as it causes the process
|
||||
// to terminate on writing to a closed pipe. Without the signal
|
||||
|
||||
@@ -6673,7 +6673,9 @@ DART_EXPORT bool Dart_IsPrecompiledRuntime() {
|
||||
|
||||
|
||||
DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
|
||||
#ifndef PRODUCT
|
||||
Profiler::DumpStackTrace(context);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
Reference in New Issue
Block a user