]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gdb(4) fix x86 signal reporting
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 23 Dec 2020 19:36:17 +0000 (15:36 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Wed, 23 Dec 2020 19:40:14 +0000 (15:40 -0400)
commit962c06c5a32deb9357851d5aca060defc79e6e90
tree282920ace449358102b78867fee2f63fe9ee169d
parent3f3cc995a35a3e9136204a98af0af5808c11047f
gdb(4) fix x86 signal reporting

The existing values correspond to x86 exception vector numbers, but the
trap numbers used in the kernel do not match these 1-to-1. Prefer the
definitions from x86/trap.h, as they are what actually get passed to
kdb_trap(). This is of little consequence, as gdb_cpu_signal() only
reports the trap reason (signal number) to the gdb client.

This is limited to the subset of trap values for which kdb_trap() is
reachable.

Reviewed by: kib
Discussed with: jhb
MFC after: 1 week
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27645
sys/amd64/amd64/gdb_machdep.c
sys/i386/i386/gdb_machdep.c