HomeFreeBSD

Use nitems to get the correct number of registers to read when dumping

Description

Use nitems to get the correct number of registers to read when dumping
them. Previously this would walk past the end of the array and print
whatever happened to be after the trapframe struct.

MFC after: 1 week
Sponsored by: DARPA, AFRL

Details