summaryrefslogtreecommitdiff
path: root/gdb/amd64fbsd-nat.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2010-02-03 15:30:22 +0000
committerDaniel Jacobowitz <dan@debian.org>2010-02-03 15:30:22 +0000
commitf70ba5ba8973067f955ed16ce832920b59b980db (patch)
tree491192886d38e03107b8128450603662dae2ec57 /gdb/amd64fbsd-nat.c
parentd56f2f6a8db3b232c307c18074129e964528a7e2 (diff)
downloadgdb-f70ba5ba8973067f955ed16ce832920b59b980db.tar.gz
* 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 1f4720cc1ed..2ad64026aa7 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