From 2754ad28194498897aa0ed20417b6e2c8776ca14 Mon Sep 17 00:00:00 2001 From: brobecke Date: Mon, 19 Oct 2009 19:48:43 +0000 Subject: [PATCH] * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment. --- gdb/ChangeLog | 4 ++++ gdb/amd64fbsd-nat.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8f324fbb00..0c83a78bac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-10-19 Joel Brobecker + + * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Add comment. + 2009-10-19 Pedro Alves Stan Shebs diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index 5a93ec30b9..eb154898e5 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); -- 2.11.0