diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-22 02:54:24 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-07-22 02:54:24 +0000 |
commit | 1e1a46615a800011d1dbeee99c5f83f6eeb762ad (patch) | |
tree | 1fd549cff3788a248e06c679244561e3f74a4a0a /usr.bin/pmdb/arch/sparc | |
parent | 23b41001efd2f304326c903e21b12183098d3b13 (diff) |
Use process_getregs everywhere.
Diffstat (limited to 'usr.bin/pmdb/arch/sparc')
-rw-r--r-- | usr.bin/pmdb/arch/sparc/sparc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/pmdb/arch/sparc/sparc.c b/usr.bin/pmdb/arch/sparc/sparc.c index fc5c6921f50..dbbb2e72df4 100644 --- a/usr.bin/pmdb/arch/sparc/sparc.c +++ b/usr.bin/pmdb/arch/sparc/sparc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sparc.c,v 1.4 2002/07/22 01:20:50 art Exp $ */ +/* $OpenBSD: sparc.c,v 1.5 2002/07/22 02:54:23 art Exp $ */ /* * Copyright (c) 2002 Federico Schwindt <fgsch@openbsd.org> * All rights reserved. @@ -54,7 +54,7 @@ md_getframe(struct pstate *ps, int frame, struct md_frame *fram) reg fp, pc; int i; - if (ptrace(PT_GETREGS, ps->ps_pid, (caddr_t)&r, 0) != 0) + if (process_getregs(ps, &r)) return (-1); if (frame == 0) { @@ -92,7 +92,7 @@ md_getregs(struct pstate *ps, reg *regs) struct reg r; int i; - if (ptrace(PT_GETREGS, ps->ps_pid, (caddr_t)&r, 0) != 0) + if (process_getregs(ps, &r)) return (-1); regs[0] = r.r_pc; |