diff options
author | 1998-08-07 02:22:03 +0000 | |
---|---|---|
committer | 1998-08-07 02:22:03 +0000 | |
commit | b43c05a1f0746689ffcc1dbcaa8540e09a0ff8bf (patch) | |
tree | 31ef90e37e88f2b32923a1dbbe41323444682258 /sys/arch/powerpc/include/ptrace.h | |
parent | Remove floppy checks from ofwboot. Ramdisk is kernel, not loadef from floppy. (diff) | |
download | wireguard-openbsd-b43c05a1f0746689ffcc1dbcaa8540e09a0ff8bf.tar.xz wireguard-openbsd-b43c05a1f0746689ffcc1dbcaa8540e09a0ff8bf.zip |
Add kernel support for debugging with gdb. This also make /proc allow
access to the registers. The format of the registers returned in ptrace,
/proc and in the coredump header match what gdb was expecting.
Floating point registers are not yet copied into the structure.
The location of the fpr needs to be found and copied. <- TODO
Changes to trap.c was to add some interm debugging. code is commented out.
powerpc does not currently have a MID_* type, since it uses ELF instead
of a.out, one was never added. Currently the coredump is done in form
of MID_NONE. What is the correct approach for this?? Elf format coredumps...
maybe?
Diffstat (limited to 'sys/arch/powerpc/include/ptrace.h')
-rw-r--r-- | sys/arch/powerpc/include/ptrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/ptrace.h b/sys/arch/powerpc/include/ptrace.h index 321320297e6..7190d31d4a2 100644 --- a/sys/arch/powerpc/include/ptrace.h +++ b/sys/arch/powerpc/include/ptrace.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ptrace.h,v 1.1 1996/12/28 06:09:22 rahnds Exp $ */ +/* $OpenBSD: ptrace.h,v 1.2 1998/08/07 02:22:05 rahnds Exp $ */ /* $NetBSD: ptrace.h,v 1.7 1995/01/26 19:47:10 mycroft Exp $ */ /* @@ -37,10 +37,10 @@ * powerpc-dependent ptrace definitions */ #define PT_STEP (PT_FIRSTMACH + 0) -#if NOT_SUPPORTED #define PT_GETREGS (PT_FIRSTMACH + 1) #define PT_SETREGS (PT_FIRSTMACH + 2) +#if NOT_SUPPORTED #define PT_GETFPREGS (PT_FIRSTMACH + 3) #define PT_SETFPREGS (PT_FIRSTMACH + 4) #endif |