win: Hook up V8 to breakpad

This fixes the crashes happens from V8 not caught by the crash reporter,
for more context, see http://code.google.com/p/v8/issues/detail?id=3597.

Fix #2365.
This commit is contained in:
Cheng Zhao 2015-10-15 14:16:27 +08:00
parent 55d5660ddb
commit d90b598125
3 changed files with 135 additions and 3 deletions

View file

@ -19,6 +19,10 @@
#include "content/public/common/content_switches.h"
#include "ui/base/resource/resource_bundle.h"
#if defined(OS_WIN)
#include "atom/common/crash_reporter/crash_reporter_win.h"
#endif
namespace atom {
namespace {
@ -69,6 +73,10 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
// Logging with pid and timestamp.
logging::SetLogItems(true, false, true, false);
#if defined(OS_WIN)
crash_reporter::SetupV8CodeRangeHook();
#endif
#if defined(DEBUG) && defined(OS_LINUX)
// Enable convient stack printing.
base::debug::EnableInProcessStackDumping();