]> granicus.if.org Git - strace/commitdiff
fix display of ptrace args on FreeBSD
authorJohn Hughes <john@Calva.COM>
Fri, 28 Sep 2001 16:21:30 +0000 (16:21 +0000)
committerJohn Hughes <john@Calva.COM>
Fri, 28 Sep 2001 16:21:30 +0000 (16:21 +0000)
ChangeLog
process.c

index f8c9be5902118d09e7efdc3c91e2d062cd65506a..807c38d607b4c627083156fb157399b80c1cca21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-28   John Hughes <john@Calva.COM>
+
+  * 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 <john@Calva.COM>
 
   * net.c: fix display of sockaddr structures, sometimes too many "}",
index 6fb953ca52da6ca7621ba066737b542d7ee3bc65..a736dd0ec55ce3678f074dc253d3e718290d59bb 100644 (file)
--- 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"               },