summaryrefslogtreecommitdiff
path: root/gdb/amd64fbsd-nat.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-10-19 19:48:43 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-10-19 19:48:43 +0000
commitaac390c60ea37e0887d1fe7273acdc64c895a0ac (patch)
tree6a9d39d5dca15d7e6b33e631a8b2717474e734d4 /gdb/amd64fbsd-nat.c
parent41a9be872229168d984f8c6b78aed0fa840f5c9e (diff)
downloadgdb-aac390c60ea37e0887d1fe7273acdc64c895a0ac.tar.gz
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment.
Diffstat (limited to 'gdb/amd64fbsd-nat.c')
-rw-r--r--gdb/amd64fbsd-nat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c
index 5a93ec30b9b..eb154898e5a 100644
--- a/gdb/amd64fbsd-nat.c
+++ b/gdb/amd64fbsd-nat.c
@@ -125,6 +125,11 @@ amd64fbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
regcache_raw_supply (regcache, 14, &pcb->pcb_r14);
regcache_raw_supply (regcache, 15, &pcb->pcb_r15);
#if (__FreeBSD_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
+ bumped to 800075 on 2009-04-06. So 800075 is the closest version
+ number where we should not try to access these fields. */
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);