1 //===-- cli-wrapper.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 // CLI Wrapper for hardware features of Intel(R) architecture based processors 9 // to enable them to be used through LLDB's CLI. For details, please refer to 10 // cli wrappers of each individual feature, residing in their respective 11 // folders. 12 // 13 // Compile this into a shared lib and load by placing at appropriate locations 14 // on disk or by using "plugin load" command at the LLDB command line. 15 // 16 //===----------------------------------------------------------------------===// 17 18 #ifdef BUILD_INTEL_MPX 19 #include "intel-mpx/cli-wrapper-mpxtable.h" 20 #endif 21 22 #ifdef BUILD_INTEL_PT 23 #include "intel-pt/cli-wrapper-pt.h" 24 #endif 25 26 #include "lldb/API/SBDebugger.h" 27 28 namespace lldb { 29 bool PluginInitialize(lldb::SBDebugger debugger); 30 } 31 32 bool lldb::PluginInitialize(lldb::SBDebugger debugger) { 33 34 #ifdef BUILD_INTEL_PT 35 PTPluginInitialize(debugger); 36 #endif 37 38 #ifdef BUILD_INTEL_MPX 39 MPXPluginInitialize(debugger); 40 #endif 41 42 return true; 43 } 44