Various changes to the registers displayed in DDB for x86.
authorjhb <jhb@FreeBSD.org>
Wed, 22 Jul 2015 01:09:02 +0000 (01:09 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 22 Jul 2015 01:09:02 +0000 (01:09 +0000)
commitd3b87ae234a6b5633807b9b3c0e6cb321ff59c9d
tree2c8d7809f0c9265146c38215be0f0961757b8185
parente613eb38bc54adf38d672271e83e53ba9d3f7231
Various changes to the registers displayed in DDB for x86.
- Fix segment registers to only display the low 16 bits.
- Remove unused handlers and entries for the debug registers.
- Display xcr0 (if valid) in 'show sysregs'.
- Add '0x' prefix to MSR values to match other values in 'show sysregs'.
- MFamd64: Display various MSRs in 'show sysregs'.
- Add a 'show dbregs' to display the value of debug registers.
- Dynamically size the column width for register values to properly
  align columns on 64-bit platforms.
- Display %gs for i386 in 'show registers'.

Differential Revision: https://reviews.freebsd.org/D2784
Reviewed by: kib, markj
MFC after: 2 weeks
sys/amd64/amd64/db_trace.c
sys/amd64/amd64/machdep.c
sys/ddb/db_print.c
sys/i386/i386/db_trace.c
sys/i386/i386/machdep.c