+2008-10-15 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
+ support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.
+
2009-10-15 Michael Eager <eager@eagercon.com>
* config/djgpp/fnchange.lst: Add translations for cpu-microblaze.c,
#include <sys/types.h>
#include <machine/pcb.h>
+#include <osreldate.h>
#include "bsd-kvm.h"
regcache_raw_supply (regcache, 13, &pcb->pcb_r13);
regcache_raw_supply (regcache, 14, &pcb->pcb_r14);
regcache_raw_supply (regcache, 15, &pcb->pcb_r15);
+#if (__FreeBSD_version < 800075)
regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds);
regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es);
regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs);
regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs);
+#endif
return 1;
}