diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-10-19 19:48:43 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-10-19 19:48:43 +0000 |
commit | ffeecfface95b0830cba3b6c92702e10f6fa1652 (patch) | |
tree | 0162996dd24056908016afaf441b0c4e161414d8 /gdb/amd64fbsd-nat.c | |
parent | 33b9c32b2647f4f59e7f0edb94572991aa8fef73 (diff) | |
download | gdb-ffeecfface95b0830cba3b6c92702e10f6fa1652.zip gdb-ffeecfface95b0830cba3b6c92702e10f6fa1652.tar.gz gdb-ffeecfface95b0830cba3b6c92702e10f6fa1652.tar.bz2 |
* amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment.
Diffstat (limited to 'gdb/amd64fbsd-nat.c')
-rw-r--r-- | gdb/amd64fbsd-nat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index 5a93ec3..eb154898 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); |