aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64fbsd-nat.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-03 15:30:25 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-03 15:30:25 +0000
commitc1dec97bf174ee0e1f1e96e53d34a78b4a2d9a6a (patch)
tree82ef5737aa3eb627220162666612781d90e2b1fb /gdb/amd64fbsd-nat.c
parentac8035ab9e1b8839f04ede4ff7f96e9c86c896cb (diff)
downloadfsf-binutils-gdb-c1dec97bf174ee0e1f1e96e53d34a78b4a2d9a6a.zip
fsf-binutils-gdb-c1dec97bf174ee0e1f1e96e53d34a78b4a2d9a6a.tar.gz
fsf-binutils-gdb-c1dec97bf174ee0e1f1e96e53d34a78b4a2d9a6a.tar.bz2
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
__FreeBSD_kernel_version.
Diffstat (limited to 'gdb/amd64fbsd-nat.c')
-rw-r--r--gdb/amd64fbsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c
index 1f4720c..2ad6402 100644
--- a/gdb/amd64fbsd-nat.c
+++ b/gdb/amd64fbsd-nat.c
@@ -125,7 +125,7 @@ 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)
+#if (__FreeBSD_version < 800075) && (__FreeBSD_kernel_version < 800075)
/* struct pcb provides the pcb_ds/pcb_es/pcb_fs/pcb_gs fields only
up until __FreeBSD_version 800074: The removal of these fields
occurred on 2009-04-01 while the __FreeBSD_version number was