siginfo-t

How do I get signal details in debugger while ptrace?

I have a debugger that I am porting over to *bsd from linux. Currently, I am working on the OpenBSD version. Under certain conditions I would like to know the details of the signal that was delivered. For example, suppose a SIGSEGV was delivered, I'd like to know what the faulting address was, and if possible, if it was a read or write....