Adapt to changed <sys/ptrace.h>
This commit is contained in:
parent
9b1f5ed60c
commit
54991d7c27
@ -39,7 +39,7 @@ char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)kdump.c 5.3 (Berkeley) 1/17/91";*/
|
||||
static char rcsid[] = "$Id: kdump.c,v 1.5 1993/08/01 18:14:18 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: kdump.c,v 1.6 1994/02/02 19:52:46 pk Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -234,7 +234,7 @@ int nsyscalls = sizeof (syscallnames) / sizeof (syscallnames[0]);
|
||||
static char *ptrace_ops[] = {
|
||||
"PT_TRACE_ME", "PT_READ_I", "PT_READ_D", "PT_READ_U",
|
||||
"PT_WRITE_I", "PT_WRITE_D", "PT_WRITE_U", "PT_CONTINUE",
|
||||
"PT_KILL", "PT_STEP",
|
||||
"PT_KILL", "PT_ATTACH", "PT_DETACH",
|
||||
};
|
||||
|
||||
ktrsyscall(ktr)
|
||||
@ -272,7 +272,7 @@ ktrsyscall(ktr)
|
||||
ip++;
|
||||
narg--;
|
||||
} else if (ktr->ktr_code == SYS_ptrace) {
|
||||
if (*ip <= PT_STEP && *ip >= 0)
|
||||
if (*ip <= PT_DETACH && *ip >= 0)
|
||||
(void)printf("(%s", ptrace_ops[*ip]);
|
||||
else
|
||||
(void)printf("(%d", *ip);
|
||||
|
Loading…
Reference in New Issue
Block a user