| Index: src/platform-posix.cc
|
| diff --git a/src/platform-posix.cc b/src/platform-posix.cc
|
| index 3c62909b7513270e9191abe0613f871a967c6c61..c91cf241960d5a245abca3f8277c43c32e27d951 100644
|
| --- a/src/platform-posix.cc
|
| +++ b/src/platform-posix.cc
|
| @@ -25,9 +25,9 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Platform specific code for POSIX goes here. This is not a platform on its
|
| -// own but contains the parts which are the same across POSIX platforms Linux,
|
| -// Mac OS, FreeBSD and OpenBSD.
|
| +// Platform-specific code for POSIX goes here. This is not a platform on its
|
| +// own, but contains the parts which are the same across the POSIX platforms
|
| +// Linux, MacOS, FreeBSD, OpenBSD, NetBSD and QNX.
|
|
|
| #include <dlfcn.h>
|
| #include <pthread.h>
|
| @@ -265,10 +265,10 @@ void OS::Sleep(int milliseconds) {
|
|
|
|
|
| void OS::Abort() {
|
| - // Redirect to std abort to signal abnormal program termination.
|
| - if (FLAG_break_on_abort) {
|
| - DebugBreak();
|
| + if (FLAG_hard_abort) {
|
| + V8_IMMEDIATE_CRASH();
|
| }
|
| + // Redirect to std abort to signal abnormal program termination.
|
| abort();
|
| }
|
|
|
| @@ -276,6 +276,8 @@ void OS::Abort() {
|
| void OS::DebugBreak() {
|
| #if V8_HOST_ARCH_ARM
|
| asm("bkpt 0");
|
| +#elif V8_HOST_ARCH_A64
|
| + asm("brk 0");
|
| #elif V8_HOST_ARCH_MIPS
|
| asm("break");
|
| #elif V8_HOST_ARCH_IA32
|
|
|