summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc/include/pcb.h
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1998-08-07 02:22:11 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1998-08-07 02:22:11 +0000
commite9c6d0a0fe1284ddcb3e6529d5f8fd3afa9bd3f7 (patch)
treea3518228531b899abb5a72c5f90e357b84e5cb70 /sys/arch/powerpc/include/pcb.h
parentfa8817757f0a24834abc674e540d3949f595a75d (diff)
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/pcb.h')
-rw-r--r--sys/arch/powerpc/include/pcb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/pcb.h b/sys/arch/powerpc/include/pcb.h
index ab02043c45f..ea32d4bbcab 100644
--- a/sys/arch/powerpc/include/pcb.h
+++ b/sys/arch/powerpc/include/pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcb.h,v 1.2 1996/12/28 06:25:18 rahnds Exp $ */
+/* $OpenBSD: pcb.h,v 1.3 1998/08/07 02:22:03 rahnds Exp $ */
/* $NetBSD: pcb.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -34,6 +34,7 @@
#ifndef _MACHINE_PCB_H_
#define _MACHINE_PCB_H_
+#include <machine/reg.h>
typedef int faultbuf[24];
struct pcb {
@@ -51,8 +52,7 @@ struct pcb {
};
struct md_coredump {
- struct trapframe frame;
- /* Need to add FPU regs here */
+ struct reg regs;
};
#ifdef _KERNEL