Diff Detail
Event Timeline
Oh, FreeBSD 9.2 (sigh). In general, I'm fine with this change, but wonder if we can put these FreeBSD hacks into a separate freebsd-specific inc file. Kostya, WDYT?
In general, I'm fine with this change, but wonder if we can put these FreeBSD hacks into a separate freebsd-specific inc file.
That's what I too was going to suggest. Thanks, Alexey.
Yea, make something like asan_freebsd_ucontext.h.
Also, if there is something incorrect somewhere, e.g. in FreeBSD, please mention the BUG URL
Yea, make something like asan_freebsd_ucontext.h.
What if we introduce a single file, say, in lib/sanitizer_common/sanitizer_freebsd.h for this sort of things?
And please continue to submit bugs for any of these issues that you find.
The canonical URL for a FreeBSD bug is of the form https://bugs.freebsd.org/<number> - e.g., https://bugs.freebsd.org/186958 . The canonical URL will always redirect to the right place; we have just migrated from Gnats to Bugzilla.
Reworked so that sanitizer_freebsd.h doesn't #define ucontext_t to xucontext_t and thus prevent potential name clashing with things defined in system headers.