[libunwind] Support extended amd64 segment registers on FreeBSD (#237265)

Raise the amd64 DWARF register limit to 59 and add RFLAGS, all six
segment selectors, FS.base, and GS.base to the register model. Capture
the extended state and restore it when resuming, using setcontext on
FreeBSD to restore selectors and bases together. Pack the state into the
existing context buffers without changing their public sizes or the
Windows XMM offsets.

Add tests for register access, signal-frame CFI recovery, register
bounds, and resume behavior.

Assisted-by: GPT
GitOrigin-RevId: 29474e1a3a721dc418dcd7e75fa95ece9e37e78f
12 files changed
tree: bd67b6fff40b8de02aec843bd4114805d54266cf
  1. cmake/
  2. docs/
  3. include/
  4. src/
  5. test/
  6. .clang-format
  7. CMakeLists.txt
  8. LICENSE.TXT