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/d9e0e2aa5e43
branches:  trunk
changeset: 379263:d9e0e2aa5e43
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 5c471f423eb3 -r d9e0e2aa5e43 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 @@ trigger_ill(void)
 
        /* 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