Shuffle how lldb register contexts are built.
authormortimer <mortimer@openbsd.org>
Sun, 14 Feb 2021 16:16:02 +0000 (16:16 +0000)
committermortimer <mortimer@openbsd.org>
Sun, 14 Feb 2021 16:16:02 +0000 (16:16 +0000)
commit0f45e2961faae028025d2069e6591eddbfcaed50
treeea3a9392fe023b5ebdf4248d027f594fe91a6cf2
parentfbe9bfe3e801cbd7a2f6ec47b134d6bd782a861b
Shuffle how lldb register contexts are built.

Instead of using #if defined(__arch__) to include / exclude the entire contents
of the NativeRegisterContext implementations, use a single NativeRegisterContextOpenBSD_arch
which includes the right arch specific register context, and provides a dummy implementation
for unsupported architectures.

This allows building lldb on architectures which do not have a register context implementation
so it can be used as a remote client.

ok patrick@
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/CMakeLists.txt
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD.h
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_arch.cpp [new file with mode: 0644]
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_arm64.cpp
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_arm64.h
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_x86_64.cpp
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_x86_64.h
gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeThreadOpenBSD.cpp
gnu/usr.bin/clang/liblldbPluginProcess/Makefile