]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 274817,274878,276801,276840,278976:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 Feb 2015 18:38:41 +0000 (18:38 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 23 Feb 2015 18:38:41 +0000 (18:38 +0000)
commite31e25b20123d1e9f49b57317f1ddfec5d4353b8
tree8d545a55b1f8a364c5e8fe792781dcb94afc7a15
parent20f7bfed2673724251bdf2ee9196ae6934b93948
MFC 274817,274878,276801,276840,278976:
Improve support for XSAVE with debuggers.
- Dump an NT_X86_XSTATE note if XSAVE is in use. This note is designed
  to match what Linux does in that 1) it dumps the entire XSAVE area
  including the fxsave state, and 2) it stashes a copy of the current
  xsave mask in the unused padding between the fxsave state and the
  xstate header at the same location used by Linux.
- Teach readelf() to recognize NT_X86_XSTATE notes.
- Change PT_GET/SETXSTATE to take the entire XSAVE state instead of
  only the extra portion. This avoids having to always make two
  ptrace() calls to get or set the full XSAVE state.
- Add a PT_GET_XSTATE_INFO which returns the length of the current
  XSTATE save area (so the size of the buffer needed for PT_GETXSTATE)
  and the current XSAVE mask (%xcr0).

git-svn-id: svn://svn.freebsd.org/base/stable/10@279211 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
15 files changed:
contrib/binutils/binutils/readelf.c
contrib/binutils/include/elf/common.h
sys/amd64/amd64/elf_machdep.c
sys/amd64/amd64/fpu.c
sys/amd64/amd64/ptrace_machdep.c
sys/compat/ia32/ia32_sysvec.c
sys/i386/i386/elf_machdep.c
sys/i386/i386/ptrace_machdep.c
sys/i386/isa/npx.c
sys/kern/imgact_elf.c
sys/sys/elf_common.h
sys/sys/imgact_elf.h
sys/x86/include/fpu.h
sys/x86/include/ptrace.h
usr.bin/gcore/elfcore.c