[lldb] [Process/NetBSD] Fix reading FIP/FDP registers
authorMichał Górny <mgorny@moritz.systems>
Thu, 1 Oct 2020 17:31:59 +0000 (19:31 +0200)
committerMichał Górny <mgorny@moritz.systems>
Sat, 3 Oct 2020 17:54:38 +0000 (19:54 +0200)
commit80b108f404fc9e88889df7247f6ae9697083cbda
treea56a5bd6e7335ca0914bed23a1bf044b1d04ca7a
parent66e493f81e8e27b4a498a6dac54d404c2333fa5e
[lldb] [Process/NetBSD] Fix reading FIP/FDP registers

Fix reading FIP/FDP registers to correctly return segment and offset
parts.  On amd64, this roughly matches the Linux behavior of splitting
the 64-bit FIP/FDP into two halves, and putting the higher 32 bits
into f*seg and lower into f*off.  Well, actually we use only 16 bits
of higher half but the CPUs do not seem to handle more than that anyway.

Differential Revision: https://reviews.llvm.org/D88681
lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp