*@Jameson*, I was able to go a little further by modifying libunwind's 
source code in order to include <signal.h> instead of <ucontext.h>. 
However, there is some point where non-trivial assembly code needs to be 
ported:

https://github.com/pathscale/libunwind/blob/vanilla_pathscale/src/x86_64/setcontext.S#L95

I haven't the slightest idea of what this code does, so I'm stuck on this 
point.

  Maurizio.

On Saturday, September 5, 2015 at 4:38:26 AM UTC+2, Jameson wrote:
>
> The libunwind dependency is very shallow, but you would lose backtraces. 
> However, I'm surprised nobody has created that header yet, since the struct 
> that I would expect to be the hard part is required for the sigaction libc 
> function and is defined at 
> http://fxr.watson.org/fxr/source/sys/signal.h?v=OPENBSD#L200 
> <http://www.google.com/url?q=http%3A%2F%2Ffxr.watson.org%2Ffxr%2Fsource%2Fsys%2Fsignal.h%3Fv%3DOPENBSD%23L200&sa=D&sntz=1&usg=AFQjCNH96veTOX30g20SNT2jb6ZaPCi-Fw>
> .
>
>

Reply via email to