From e918cd413400451bb52f64465d66714c5f4d1ac7 Mon Sep 17 00:00:00 2001 From: skrll Date: Mon, 6 Jun 2022 07:22:31 +0000 Subject: [PATCH] Match up PTRACE_BREAKPOINT_ASM with PTRACE_BREAKPOINT which is the gdb breakpoint instruction. --- sys/arch/hppa/include/ptrace.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/hppa/include/ptrace.h b/sys/arch/hppa/include/ptrace.h index c6b84635768b..ce28f8606a32 100644 --- a/sys/arch/hppa/include/ptrace.h +++ b/sys/arch/hppa/include/ptrace.h @@ -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")