It replaces previous TRAP_HWWPT and is designed to be used for debug
register traps (both watchpoints and breakpoints).
TRAP_HWWPT wasn't documented in siginfo(2) neither noted in doc/CHANGES -
- document it and add new entry in CHANGES. This move is a step towards
switch the watchpoint ptrace(2) api to PT_*DBREGS.
This code was introduced recently and has no impact on stable releases.
Sponsored by <The NetBSD Foundation>
The SIGTRAP signal is thrown from the kernel if EVENT_MASK (ptrace_event)
enables PTRACE_FORK. This new si_code helps debuggers to distinguish the
exact source of signal delivered for a debugger.
Another purpose of TRAP_CHLD is to retain the same behavior inside the
NetBSD kernel for process child traps and have an interface to monitor it.
Retrieving exact event and extended properties of process child trap is
available with PT_GET_PROCESS_STATE.
There is no behavior change for existing software.
This si_code value is NetBSD extension.
Sponsored by <The NetBSD Foundation>
SI_MESGQ
The signal was generated because of the arrival of a message
on an empty message queue.
This code was commented out since inception of this manual page (originally
located in siginfo(5)).
Sponsored by <The NetBSD Foundation>
SI_QUEUE
The signal was generated via sigqueue(2).
This code was commented out since inception of this manual page (originally
located in siginfo(5)).
Sponsored by <The NetBSD Foundation>
Example: i386/amd64 alignement fault can drive to SIGBUS (when configured
so by process), however the faulty address returned by the CPU is not
reliable.
Bump date.