summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include/proc.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-03-12 11:58:15 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-03-12 11:58:15 +0000
commit5b79aab6eebe0f7a472f6dca68a6d5c34c8e48e3 (patch)
tree12f5d15fda057fdb207e251ce9ff7d0ac977db05 /sys/arch/alpha/include/proc.h
parent1f81b3a4471284b779fdf18bad08ed80babb2cd9 (diff)
Emulate ptrace(PT_STEP in software.
More or less directly from FreeBSD.
Diffstat (limited to 'sys/arch/alpha/include/proc.h')
-rw-r--r--sys/arch/alpha/include/proc.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/proc.h b/sys/arch/alpha/include/proc.h
index 22ceefe5803..8caaad0c739 100644
--- a/sys/arch/alpha/include/proc.h
+++ b/sys/arch/alpha/include/proc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.h,v 1.5 2000/11/08 16:01:13 art Exp $ */
+/* $OpenBSD: proc.h,v 1.6 2002/03/12 11:58:14 art Exp $ */
/* $NetBSD: proc.h,v 1.2 1995/03/24 15:01:36 cgd Exp $ */
/*
@@ -33,13 +33,21 @@
* Machine-dependent part of the proc struct for the Alpha.
*/
+struct mdbpt {
+ vaddr_t addr;
+ u_int32_t contents;
+};
+
struct mdproc {
- u_long md_flags;
- struct trapframe *md_tf; /* trap/syscall registers */
+ u_long md_flags;
+ struct trapframe *md_tf; /* trap/syscall registers */
struct pcb *md_pcbpaddr; /* phys addr of the pcb */
+ struct mdbpt md_sstep[2]; /* two breakpoints for sstep */
};
#define MDP_FPUSED 0x0001 /* Process used the FPU */
+#define MDP_STEP1 0x0002 /* Single step normal */
+#define MDP_STEP2 0x0003 /* Single step branch */
#ifdef _KERNEL
void switch_exit __P((struct proc *));