Report proper signal codes for SIGTRAP traps on MIPS.
authorjhb <jhb@FreeBSD.org>
Tue, 24 Apr 2018 05:33:17 +0000 (05:33 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 24 Apr 2018 05:33:17 +0000 (05:33 +0000)
commit089cc5e679d0daf1507b68467d4bd99b9d8e06e4
tree9346d032c2e38466cdf28d9202443852f678590c
parente2b0d83db1c312cef05558c0e1b17515aaba4b60
Report proper signal codes for SIGTRAP traps on MIPS.

- Use TRAP_TRACE for traps after stepping via PT_STEP.
- Use TRAP_BRKPT for software breakpoint traps and watchpoint traps.

This was tested via the recently added siginfo ptrace() tests.  PT_STEP on
MIPS has several bugs that prevent it from working yet, but this does fix
the ptrace__breakpoint_siginfo test on MIPS.
sys/mips/mips/trap.c