Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/include Match up PTRACE_BREAKPOINT_ASM with PT...



details:   https://anonhg.NetBSD.org/src/rev/225485bd3e26
branches:  trunk
changeset: 366666:225485bd3e26
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jun 06 07:22:31 2022 +0000

description:
Match up PTRACE_BREAKPOINT_ASM with PTRACE_BREAKPOINT which is the
gdb breakpoint instruction.

diffstat:

 sys/arch/hppa/include/ptrace.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r e171f13f6957 -r 225485bd3e26 sys/arch/hppa/include/ptrace.h
--- a/sys/arch/hppa/include/ptrace.h    Mon Jun 06 07:00:02 2022 +0000
+++ b/sys/arch/hppa/include/ptrace.h    Mon Jun 06 07:22:31 2022 +0000
@@ -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")



Home | Main Index | Thread Index | Old Index