Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys On mips, avoid deliberately executing an ...



details:   https://anonhg.NetBSD.org/src/rev/5ac88418c8b9
branches:  trunk
changeset: 1021294:5ac88418c8b9
user:      gson <gson%NetBSD.org@localhost>
date:      Mon May 24 10:44:06 2021 +0000

description:
On mips, avoid deliberately executing an illegal instruction for now
because it causes GXemul to exit rather than generating a trap.  A bug
report has been sent to the GXemul author.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 33b3f1c2bf66 -r 5ac88418c8b9 tests/lib/libc/sys/t_ptrace_wait.h
--- a/tests/lib/libc/sys/t_ptrace_wait.h        Mon May 24 07:43:15 2021 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.h        Mon May 24 10:44:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.h,v 1.32 2020/06/22 12:21:02 rin Exp $   */
+/*     $NetBSD: t_ptrace_wait.h,v 1.33 2021/05/24 10:44:06 gson Exp $  */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -648,7 +648,9 @@
 
        /* Illegal instruction causes CPU trap, translated to SIGILL */
 #ifdef PTRACE_ILLEGAL_ASM
+#ifndef __mips__ /* To avoid GXemul crash */
        PTRACE_ILLEGAL_ASM;
+#endif
 #else
        /* port me */
 #endif



Home | Main Index | Thread Index | Old Index