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

So the issue is checking __FreeBSD_version and not
__FreeBSD_kernel_version?

Yes.

Does normal FreeBSD define both?

No.

The assumption is that either both are defined to the same value,
or only one is defined and the other one is undefined, which is evaluated as 
zero.

Therefore the right thing to do is

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

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).

Sorry, I don't know how to do that.  You'd need to bring in
linux-thread-db.c and bits of linux-nat.c somehow.  I doubt
it's really the same at the level GDB sees it.

It might be very close. The most needed is a way
to access __thread variables, namely errno.
TLS implementation is the same, only the way to set-up
fs/gs base is a different.

Petr



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

Reply via email to