Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include Define PTRACE_ILLEGAL_ASM for i386
details: https://anonhg.NetBSD.org/src/rev/e9a89b3ad52e
branches: trunk
changeset: 457236:e9a89b3ad52e
user: kamil <kamil%NetBSD.org@localhost>
date: Mon Jun 17 14:31:51 2019 +0000
description:
Define PTRACE_ILLEGAL_ASM for i386
diffstat:
sys/arch/i386/include/ptrace.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 234ea05fd3ec -r e9a89b3ad52e sys/arch/i386/include/ptrace.h
--- a/sys/arch/i386/include/ptrace.h Mon Jun 17 14:19:44 2019 +0000
+++ b/sys/arch/i386/include/ptrace.h Mon Jun 17 14:31:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.20 2018/05/22 21:03:09 kamil Exp $ */
+/* $NetBSD: ptrace.h,v 1.21 2019/06/17 14:31:51 kamil Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -111,6 +111,8 @@
#define PTRACE_REG_SP(r) (r)->r_esp
#define PTRACE_REG_INTRV(r) (r)->r_eax
+#define PTRACE_ILLEGAL_ASM __asm __volatile ("ud2" : : : "memory")
+
#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0xcc })
#define PTRACE_BREAKPOINT_ASM __asm __volatile ("int3" : : : "memory")
#define PTRACE_BREAKPOINT_SIZE 1
Home |
Main Index |
Thread Index |
Old Index