1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Remove trace_req().

Reviewed by:	alfred, jhb, peter
This commit is contained in:
Jonathan Mini 2002-05-09 04:13:41 +00:00
parent 82641acd17
commit d8f4f6a404
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96244
3 changed files with 10 additions and 22 deletions

View File

@ -1569,25 +1569,21 @@ issignal(p)
}
if (p->p_flag & P_TRACED && (p->p_flag & P_PPWAIT) == 0) {
/*
* If traced, always stop, and stay
* stopped until released by the parent.
* If traced, always stop.
*/
p->p_xstat = sig;
PROC_LOCK(p->p_pptr);
psignal(p->p_pptr, SIGCHLD);
PROC_UNLOCK(p->p_pptr);
do {
mtx_lock_spin(&sched_lock);
stop(p);
PROC_UNLOCK(p);
DROP_GIANT();
p->p_stats->p_ru.ru_nivcsw++;
mi_switch();
mtx_unlock_spin(&sched_lock);
PICKUP_GIANT();
PROC_LOCK(p);
} while (!trace_req(p)
&& p->p_flag & P_TRACED);
mtx_lock_spin(&sched_lock);
stop(p);
PROC_UNLOCK(p);
DROP_GIANT();
p->p_stats->p_ru.ru_nivcsw++;
mi_switch();
mtx_unlock_spin(&sched_lock);
PICKUP_GIANT();
PROC_LOCK(p);
/*
* If the traced bit got turned off, go back up

View File

@ -707,13 +707,6 @@ ptrace(struct thread *td, struct ptrace_args *uap)
return (error);
}
int
trace_req(struct proc *p)
{
return (1);
}
/*
* Stop a process because of a debugging event;
* stay stopped until p->p_step is cleared

View File

@ -752,7 +752,6 @@ void cpu_exit(struct thread *);
void exit1(struct thread *, int) __dead2;
void cpu_fork(struct thread *, struct proc *, struct thread *, int);
void cpu_set_fork_handler(struct thread *, void (*)(void *), void *);
int trace_req(struct proc *);
void cpu_wait(struct proc *);
int cpu_coredump(struct thread *, struct vnode *, struct ucred *);
struct thread *thread_get(struct proc *);