The FreeBSD 8.0 kernel does not have segment registers in pcb anymore.
To solve current FTBFS please just use patch bellow.

Sorry for the inconvenience.

In GDB 7.0.1, where this bug was just re-reported, GDB says:

#if (__FreeBSD_version <  800075)
 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);
 regcache_raw_supply (regcache, AMD64_GS_REGNUM, &pcb->pcb_gs);
#endif

Is that the wrong version?  The patch was:

2008-10-16  Steven G. Kargl  <ka...@gcc.gnu.org>  (tiny patch)

       * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Conditionally compile in
       support for pcb->pcb_{fs,ds,es,gs} on FreeBSD older than 8.0.

They have been removed somehere during 8.0 development,
it started with 800000, the 8.0 release have 800107.
I did'n know the exact version, so please change the check to

#if (__FreeBSD_version < 800075) && (__FreeBSD_kernel_version < 800075)

It would also be nice if you can push it into upstream.

Please, do you have some hints how to teach gdb,
that on GNU/kFreeBSD is thread handling the same as
in linuxthreads (pre-NPTL) implementation (#550361).

Many thanks

        Petr




--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to