diff options
author | David Xu <davidxu@FreeBSD.org> | 2004-07-16 06:11:48 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2004-07-16 06:11:48 +0000 |
commit | 794adb75eed596fe830ab96b1ccfee6b97bd3f3d (patch) | |
tree | c2b86c02a0bd4e90b35d262b9c721122c299a1c4 | |
parent | 2508f480c2316ed8fe9a743df0f94bc3f3587261 (diff) |
Notes
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index d0bee7d75c1e..7110c8ce8dd7 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -1078,13 +1078,17 @@ ps_lsetfpregs (struct ps_prochandle *ph, lwpid_t lwpid, ps_err_e ps_lstop(struct ps_prochandle *ph, lwpid_t lwpid) { - return (ptrace (lwpid, PT_SUSPEND, 0, 0) == 0); + if (ptrace (PT_SUSPEND, lwpid, 0, 0) == -1) + return PS_ERR; + return PS_OK; } ps_err_e ps_lcontinue(struct ps_prochandle *ph, lwpid_t lwpid) { - return (ptrace (lwpid, PT_RESUME, 0, 0) == 0); + if (ptrace (PT_RESUME, lwpid, 0, 0) == -1) + return PS_ERR; + return PS_OK; } pid_t |