Match up PTRACE_BREAKPOINT_ASM with PTRACE_BREAKPOINT which is the

gdb breakpoint instruction.
This commit is contained in:
skrll 2022-06-06 07:22:31 +00:00
parent 0685b389ae
commit e918cd4134
1 changed files with 5 additions and 2 deletions

View File

@ -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")