summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorJohn Hughes <john@Calva.COM>2001-09-28 16:21:30 +0000
committerJohn Hughes <john@Calva.COM>2001-09-28 16:21:30 +0000
commita2278146b07066567521617158c5284a585668c9 (patch)
tree6f7eec59c1d97e38c307223bf116faaf8a4e4393 /process.c
parent1fcb1d64ed13836334d100af9412f220efa1bbfa (diff)
downloadstrace-a2278146b07066567521617158c5284a585668c9.tar.gz
fix display of ptrace args on FreeBSD
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/process.c b/process.c
index 6fb953ca5..a736dd0ec 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" },