Patch to fix build with FreeBSD -CURRENT + typo
Maxime Henrion
mux at qualys.com
Thu Sep 27 12:09:05 UTC 2001
Hi,
Here is a little patch that fixes build for FreeBSD -CURRENT. The
problem is that the definition of PT_READ_U has been ripped from
sys/ptrace.h on this platform. This patch also fixes a little typo that
made the command PT_WRITE_U printed when PT_READ_U was detected.
I will send a patch to be committed in FreeBSD's ports tree to fix the
build for the moment, and it would be very nice to have it in the next
release.
Thanks,
Maxime Henrion
P.S.: The diff has been made against the latest CVS revision of process.c.
--
Key fingerprint = F9B6 1D5A 4963 331C 88FC CA6A AB50 1EF2 8CBE 99D6
-------------- next part --------------
--- process.c.old Thu Sep 27 20:54:02 2001
+++ process.c Thu Sep 27 20:55:18 2001
@@ -1771,7 +1771,9 @@
{ 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" },
More information about the Strace-devel
mailing list