xref: /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD_arch.cpp (revision 0f45e2961faae028025d2069e6591eddbfcaed50)
1 //===-- NativeRegisterContextOpenBSD_arch.cpp ---------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // NativeRegisterContextOpenBSD_* contains the implementations for each
11 // supported architecture, and includes the static initalizer
12 // CreateHostNativeRegisterContextOpenBSD() implementation which returns a arch
13 // specific register context. In order to facilitate compiling lldb
14 // on architectures which do not have an RegisterContext implementation
15 // this file will include the relevant backend, and otherwise will
16 // include a stub implentation which just reports an error and exits.
17 
18 #if defined(__arm64__) || defined(__aarch64__)
19 #include "NativeRegisterContextOpenBSD_arm64.cpp"
20 #elif defined(__x86_64__)
21 #include "NativeRegisterContextOpenBSD_x86_64.cpp"
22 #else
23 
24 #include "Plugins/Process/OpenBSD/NativeRegisterContextOpenBSD.h"
25 
26 using namespace lldb_private;
27 using namespace lldb_private::process_openbsd;
28 
29 std::unique_ptr<NativeRegisterContextOpenBSD>
30 NativeRegisterContextOpenBSD::CreateHostNativeRegisterContextOpenBSD(
31         const ArchSpec &target_arch, NativeThreadProtocol &native_thread) {
32   return std::unique_ptr<NativeRegisterContextOpenBSD>{};
33 }
34 
35 #endif
36