]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
authorJoel Brobecker <brobecker@gnat.com>
Sat, 17 Oct 2009 04:19:19 +0000 (04:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 17 Oct 2009 04:19:19 +0000 (04:19 +0000)
        support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.

gdb/ChangeLog
gdb/amd64fbsd-nat.c

index 2e2a107e1aae7d1711d9c41bb018593dd7f8eb5e..78e9bbddc9d909fe8d1a2c9ac8a15689c471d8b5 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-16  Steven G. Kargl  <kargl@gcc.gnu.org>  (tiny patch)
+
+       * 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-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        PR gdb/10457
index d3da39e70a4a78fb91a5cdcc5f9064c26073459e..5a93ec30b9b66e4da4b8e9726336ef4ec4307615 100644 (file)
@@ -95,6 +95,7 @@ static int amd64fbsd32_r_reg_offset[I386_NUM_GREGS] =
 
 #include <sys/types.h>
 #include <machine/pcb.h>
+#include <osreldate.h>
 
 #include "bsd-kvm.h"
 
@@ -123,10 +124,12 @@ amd64fbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   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;
 }