This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] GNU/k*BSD fixes [w/ChangeLog]
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: robertmh at gnu dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 8 Aug 2004 23:59:32 -0400
- Subject: Re: [PATCH] GNU/k*BSD fixes [w/ChangeLog]
So I was going to commit this patch
(http://sources.redhat.com/ml/gdb-patches/2004-08/msg00192.html)
as obviously correct, but then I looked at this bit:
diff -ur src.old/gdb/i386bsd-nat.c src/gdb/i386bsd-nat.c
--- src.old/gdb/i386bsd-nat.c 2004-05-31 13:20:41.000000000 +0200
+++ src/gdb/i386bsd-nat.c 2004-08-07 03:09:50.000000000 +0200
@@ -35,6 +35,16 @@
#include "i387-tdep.h"
+#if defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
+# define __FreeBSD_kernel__ __FreeBSD__
+#endif
+#ifdef __FreeBSD_kernel__
+# include <osreldate.h>
+# ifndef __FreeBSD_kernel_version
+# define __FreeBSD_kernel_version __FreeBSD_version
+# endif
+#endif
...and I wondered if it is absolutely guaranteed that <osreldate.h> will
exist on all FreeBSD and FreeBSD-kernel systems of any possible vintage
supported by GDB. Cause otherwise this could break the build on other
systems.
--
There are none so blind as those who will not see.