TBR=svenpanne@chromium.org
BUG=
Review URL: https://codereview.chromium.org/
23708039
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16718
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
"automatically set the debug break flag when debugger commands are "
"in the queue")
DEFINE_bool(enable_liveedit, true, "enable liveedit experimental feature")
-DEFINE_bool(break_on_abort, false, "always cause a debug break before aborting")
+DEFINE_bool(break_on_abort, true, "always cause a debug break before aborting")
// execution.cc
// Slightly less than 1MB on 64-bit, since Windows' default stack size for
if (FLAG_break_on_abort) {
DebugBreak();
}
- V8_IMMEDIATE_CRASH();
+ abort();
}
void OS::Abort() {
if (IsDebuggerPresent() || FLAG_break_on_abort) {
DebugBreak();
+ } else {
+ // Make the MSVCRT do a silent abort.
+ raise(SIGABRT);
}
- V8_IMMEDIATE_CRASH();
}
#include "utils.h"
#include "v8globals.h"
-// This is lined up with blink's method of crashing.
-#if defined(__GNUC__)
-#define V8_IMMEDIATE_CRASH() __builtin_trap()
-#else
-#define V8_IMMEDIATE_CRASH() ((void(*)())0)()
-#endif
-
#ifdef __sun
# ifndef signbit
namespace std {