diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-08-11 17:33:26 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-08-11 17:33:26 +0000 |
commit | afd44137e854c021c1e26e7a5d261dcf706ee9dc (patch) | |
tree | 6df5d79ff9e595481ae54191003939135774e4d9 /lib/libproc/proc_bkpt.c | |
parent | 5688dd21e911eab4ec09be1089f77d8d58fff05c (diff) | |
download | FreeBSD-src-afd44137e854c021c1e26e7a5d261dcf706ee9dc.zip FreeBSD-src-afd44137e854c021c1e26e7a5d261dcf706ee9dc.tar.gz |
Several fixes for libproc:
o return the correct status in proc_wstatus()
o proc_read takes a void *
o correctly allocate the objs structure array
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libproc/proc_bkpt.c')
-rw-r--r-- | lib/libproc/proc_bkpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libproc/proc_bkpt.c b/lib/libproc/proc_bkpt.c index 862a1bb..c426471 100644 --- a/lib/libproc/proc_bkpt.c +++ b/lib/libproc/proc_bkpt.c @@ -164,7 +164,8 @@ proc_bkptexec(struct proc_handle *phdl, unsigned long saved) warn("ERROR: ptrace step failed"); return (-1); } - status = proc_wstatus(phdl); + proc_wstatus(phdl); + status = proc_getwstat(phdl); if (!WIFSTOPPED(status)) { warn("ERROR: don't know why process stopped"); return (-1); |