]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 288371:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Nov 2015 21:22:23 +0000 (21:22 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Nov 2015 21:22:23 +0000 (21:22 +0000)
commit4d6767b46d36f213fa94c7af93c5c39a9e362d55
tree002daeaa5cbc27b5bd585070fa821874f688d09e
parentdafb7bc991c40056327f2e96bbe12ed3c3b8ece4
MFC 288371:
When XSAVE support was added on amd64, the FPU save area was moved
out of 'struct pcb' and into a variable-sized region after the
structure.  The kgdb code currently only reads the pcb.  It does not
read in the FPU save area but instead passes stack garbage as the
FPU's saved context.  Fixing this would mean determining the proper
size of the area and fetching it.  However, this state is not saved
for running CPUs in stoppcbs[], so the callback would also have to
know to ignore those pcbs.  Instead, just remove the call since it is
of limited usefulness.  It results in kgdb reporting the state of the
FPU/SIMD registers in userland, not their current values in the kernel.
In particular, it does not report the correct state for any code in
the kernel which does use the FPU and would report incorrect values
in that case.

git-svn-id: svn://svn.freebsd.org/base/stable/9@290413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
gnu/usr.bin/gdb/kgdb/trgt_amd64.c