Module Name: src
Committed By: skrll
Date: Mon Jun 6 07:22:31 UTC 2022
Modified Files:
src/sys/arch/hppa/include: ptrace.h
Log Message:
Match up PTRACE_BREAKPOINT_ASM with PTRACE_BREAKPOINT which is the
gdb breakpoint instruction.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/hppa/include/ptrace.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hppa/include/ptrace.h
diff -u src/sys/arch/hppa/include/ptrace.h:1.11 src/sys/arch/hppa/include/ptrace.h:1.12
--- src/sys/arch/hppa/include/ptrace.h:1.11 Mon Jun 6 06:41:43 2022
+++ src/sys/arch/hppa/include/ptrace.h Mon Jun 6 07:22:31 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.11 2022/06/06 06:41:43 skrll Exp $ */
+/* $NetBSD: ptrace.h,v 1.12 2022/06/06 07:22:31 skrll Exp $ */
/* $OpenBSD: ptrace.h,v 1.2 1998/12/01 03:05:44 mickey Exp $ */
@@ -58,8 +58,11 @@
#define PTRACE_REG_SP(r) (r)->r_regs[30]
#define PTRACE_REG_INTRV(r) (r)->r_regs[28]
+#define HPPA_BREAK_GDB 4
+#define HPPA_BREAK_GDB_SS 8
+
#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0x00, 0x01, 0x00, 0x04 })
-#define PTRACE_BREAKPOINT_ASM __asm __volatile("break %0, %1" :: "i" (HPPA_BREAK_KERNEL), "i" (HPPA_BREAK_SS) : "memory")
+#define PTRACE_BREAKPOINT_ASM __asm __volatile("break %0, %1" :: "i" (HPPA_BREAK_GDB), "i" (HPPA_BREAK_GDB_SS) : "memory")
#define PTRACE_BREAKPOINT_SIZE 4
#define PTRACE_ILLEGAL_ASM __asm __volatile (".word 0x000ff000" : : : "memory")