The trace_req() function is a no-op; garbage collect it.

This commit is contained in:
nathanw 2001-06-13 16:06:27 +00:00
parent 01b21ab7a1
commit 9e8fb68348
3 changed files with 8 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_sig.c,v 1.113 2001/06/06 21:37:19 mrg Exp $ */ /* $NetBSD: kern_sig.c,v 1.114 2001/06/13 16:06:28 nathanw Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1989, 1991, 1993 * Copyright (c) 1982, 1986, 1989, 1991, 1993
@ -63,7 +63,6 @@
#include <sys/syslog.h> #include <sys/syslog.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/core.h> #include <sys/core.h>
#include <sys/ptrace.h>
#include <sys/filedesc.h> #include <sys/filedesc.h>
#include <sys/malloc.h> #include <sys/malloc.h>
#include <sys/pool.h> #include <sys/pool.h>
@ -1030,13 +1029,11 @@ issignal(struct proc *p)
p->p_xstat = signum; p->p_xstat = signum;
if ((p->p_flag & P_FSTRACE) == 0) if ((p->p_flag & P_FSTRACE) == 0)
psignal(p->p_pptr, SIGCHLD); psignal(p->p_pptr, SIGCHLD);
do { SCHED_LOCK(s);
SCHED_LOCK(s); proc_stop(p);
proc_stop(p); mi_switch(p);
mi_switch(p); SCHED_ASSERT_UNLOCKED();
SCHED_ASSERT_UNLOCKED(); splx(s);
splx(s);
} while (!trace_req(p) && p->p_flag & P_TRACED);
/* /*
* If we are no longer being traced, or the parent * If we are no longer being traced, or the parent

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_process.c,v 1.67 2001/03/17 09:38:36 pooka Exp $ */ /* $NetBSD: sys_process.c,v 1.68 2001/06/13 16:06:28 nathanw Exp $ */
/*- /*-
* Copyright (c) 1994 Christopher G. Demetriou. All rights reserved. * Copyright (c) 1994 Christopher G. Demetriou. All rights reserved.
@ -398,12 +398,3 @@ sys_ptrace(p, v, retval)
#endif #endif
return 0; return 0;
} }
int
trace_req(a1)
struct proc *a1;
{
/* just return 1 to keep other parts of the system happy */
return (1);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.h,v 1.21 1996/02/09 18:25:26 christos Exp $ */ /* $NetBSD: ptrace.h,v 1.22 2001/06/13 16:06:27 nathanw Exp $ */
/*- /*-
* Copyright (c) 1984, 1993 * Copyright (c) 1984, 1993
@ -80,8 +80,6 @@ int process_write_regs __P((struct proc *p, struct reg *regs));
#define FIX_SSTEP(p) #define FIX_SSTEP(p)
#endif #endif
int trace_req __P((struct proc *));
#else /* !_KERNEL */ #else /* !_KERNEL */
#include <sys/cdefs.h> #include <sys/cdefs.h>