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/alpha/alpha.c | |
parent | 23b41001efd2f304326c903e21b12183098d3b13 (diff) |
Use process_getregs everywhere.
Diffstat (limited to 'usr.bin/pmdb/arch/alpha/alpha.c')
-rw-r--r-- | usr.bin/pmdb/arch/alpha/alpha.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/pmdb/arch/alpha/alpha.c b/usr.bin/pmdb/arch/alpha/alpha.c index 9e5fd953b16..37a36e39ccc 100644 --- a/usr.bin/pmdb/arch/alpha/alpha.c +++ b/usr.bin/pmdb/arch/alpha/alpha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alpha.c,v 1.2 2002/03/15 16:41:06 jason Exp $ */ +/* $OpenBSD: alpha.c,v 1.3 2002/07/22 02:54:23 art Exp $ */ /* * Copyright (c) 2002 Artur Grabowski <art@openbsd.org> * All rights reserved. @@ -61,10 +61,10 @@ md_getregs(struct pstate *ps, reg *regs) { struct reg r; - if (ptrace(PT_GETREGS, ps->ps_pid, (caddr_t)&r, 0) != 0) - return -1; + if (process_getregs(ps, &r)) + return (-1); memcpy(regs, &r, sizeof(r)); - return 0; + return (0); }
\ No newline at end of file |