Deleted Added
full compact
procfs_ctl.c (113867) procfs_ctl.c (123247)
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_ctl.c 8.4 (Berkeley) 6/15/94
38 *
39 * From:
40 * $Id: procfs_ctl.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 24 unchanged lines hidden (view full) ---

33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_ctl.c 8.4 (Berkeley) 6/15/94
38 *
39 * From:
40 * $Id: procfs_ctl.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
41 * $FreeBSD: head/sys/fs/procfs/procfs_ctl.c 113867 2003-04-22 20:00:26Z jhb $
41 * $FreeBSD: head/sys/fs/procfs/procfs_ctl.c 123247 2003-12-07 17:40:00Z des $
42 */
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/lock.h>
47#include <sys/mutex.h>
48#include <sys/proc.h>
49#include <sys/ptrace.h>

--- 191 unchanged lines hidden (view full) ---

241 sx_xunlock(&proctree_lock);
242
243 wakeup(td->td_proc); /* XXX for CTL_WAIT below ? */
244
245 break;
246
247 /*
248 * Step. Let the target process execute a single instruction.
42 */
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/lock.h>
47#include <sys/mutex.h>
48#include <sys/proc.h>
49#include <sys/ptrace.h>

--- 191 unchanged lines hidden (view full) ---

241 sx_xunlock(&proctree_lock);
242
243 wakeup(td->td_proc); /* XXX for CTL_WAIT below ? */
244
245 break;
246
247 /*
248 * Step. Let the target process execute a single instruction.
249 * What does it mean to single step a threaded program?
249 * What does it mean to single step a threaded program?
250 */
251 case PROCFS_CTL_STEP:
252 PROC_UNLOCK(p);
253 error = proc_sstep(FIRST_THREAD_IN_PROC(p)); /* XXXKSE */
254 PRELE(p);
255 if (error)
256 return (error);
257 break;

--- 106 unchanged lines hidden ---
250 */
251 case PROCFS_CTL_STEP:
252 PROC_UNLOCK(p);
253 error = proc_sstep(FIRST_THREAD_IN_PROC(p)); /* XXXKSE */
254 PRELE(p);
255 if (error)
256 return (error);
257 break;

--- 106 unchanged lines hidden ---