[lldb] [Process/elf-core] Fix reading FPRs from FreeBSD/i386 cores
authorMichał Górny <mgorny@moritz.systems>
Thu, 22 Apr 2021 17:21:50 +0000 (19:21 +0200)
committerMichał Górny <mgorny@moritz.systems>
Wed, 12 May 2021 09:51:37 +0000 (11:51 +0200)
commitb6c0edb9792c1a216961aefb63783ab4b986e823
treea43728c981ba36af9eb15dd196b914b2e9850d65
parentfdb055f4f139e225884109fbffa275bd3eb3d3b9
[lldb] [Process/elf-core] Fix reading FPRs from FreeBSD/i386 cores

The FreeBSD coredumps from i386 systems contain only FSAVE-style
NT_FPREGSET.  Since we do not really support reading that kind of data
anymore, just use NT_X86_XSTATE to get FXSAVE-style data when available.

Differential Revision: https://reviews.llvm.org/D101086
lldb/source/Plugins/Process/elf-core/RegisterUtilities.h
lldb/test/Shell/Register/Core/x86-32-freebsd-addr.test
lldb/test/Shell/Register/Core/x86-32-freebsd-fp.test [new file with mode: 0644]