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 #include "intel-mpx/cli-wrapper-mpxtable.h" 19 #include "intel-pt/cli-wrapper-pt.h" 20 #include "lldb/API/SBDebugger.h" 21 22 namespace lldb { 23 bool PluginInitialize(lldb::SBDebugger debugger); 24 } 25 26 bool lldb::PluginInitialize(lldb::SBDebugger debugger) { 27 28 #ifdef BUILD_INTEL_PT 29 PTPluginInitialize(debugger); 30 #endif 31 32 #ifdef BUILD_INTEL_MPX 33 MPXPluginInitialize(debugger); 34 #endif 35 36 return true; 37 } 38