On 08/15/17 07:14 AM, Vincent Torri wrote: > >> Running make, the first error is the ucontext.h header file which is > >> not found. Normal. > >> > >> After some grep, it appears that you call only getcontext() function. > >> On Windows, the equivalent of ucontext_t type is the CONTEXT type and > >> getcontext() equivalent is GetThreadContext() on the current thread. > > > > As far as I know, we only use the ucontext_t, so that we can be > > comatible with the system getcontext() and setcontext(), the system > > versions aren't actually called, and most platforms implement their > > own, see the getcontext.S, etc. > > is there a reason to not use the system functions ?
Usually getcontext() also saves the signal mask, which requires a syscall, making it much slower than otherwise necessary - most uses of libunwind don't require resetting the signal mask (at least, not to the value where getcontext() was called for unwinding). _______________________________________________ Libunwind-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/libunwind-devel
