From: John Hughes Date: Fri, 28 Sep 2001 16:21:30 +0000 (+0000) Subject: fix display of ptrace args on FreeBSD X-Git-Tag: v4.5.18~1012 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2278146b07066567521617158c5284a585668c9;p=strace fix display of ptrace args on FreeBSD --- diff --git a/ChangeLog b/ChangeLog index f8c9be59..807c38d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-28 John Hughes + + * process.c: FreeBSD-CURRENT no longer has PT_READ_U, and anyway we + were showing it as PT_WRITE_U! Fix from Maxime Henrion. + 2001-09-18 John Hughes * net.c: fix display of sockaddr structures, sometimes too many "}", diff --git a/process.c b/process.c index 6fb953ca..a736dd0e 100644 --- a/process.c +++ b/process.c @@ -1771,7 +1771,9 @@ static struct xlat ptrace_cmds[] = { { PT_READ_D, "PT_READ_D" }, { PT_WRITE_I, "PT_WRITE_I" }, { PT_WRITE_D, "PT_WRITE_D" }, - { PT_READ_U, "PT_WRITE_U" }, +#ifdef PT_READ_U + { PT_READ_U, "PT_READ_U" }, +#endif { PT_CONTINUE, "PT_CONTINUE" }, { PT_KILL, "PT_KILL" }, { PT_STEP, "PT_STEP" },