Skip to content

tedwoodward/lldb-mi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lldb-mi

LLDB's machine interface driver.

Build

lldb-mi uses CMake to build. The only dependencies needed for lldb-mi are a C++11 compiler and LLDB itself (including its dependencies: Clang and LLVM). These dependencies should be installed in a way that they can be found via CMake's find_package functionality. You need both the LLDB/Clang/LLVM headers and their compiled libraries for the build to work, but not the respective source files.

Building against system LLDB

If your distribution or operating system already ships a correctly configured LLDB/Clang/LLVM installation, lldb-mi can be build by simple running:

cmake .
cmake --build .

Building against custom LLDB

You can also build lldb-mi against a LLDB that you compiled yourself. For that compile LLDB as described here but set CMAKE_INSTALL_PREFIX to a local directory and build the LLVM shared library by passing -DLLVM_BUILD_LLVM_DYLIB=On to CMake. Afterwards point towards that prefix directory when building lldb-mi by settings CMAKE_PREFIX_PATH (e.g. cmake -DCMAKE_PREFIX_PATH=/home/yourname/lldb-mi/install).

This example script should build LLVM and lldb-mi on an average UNIX system in the ~/buildspace subfolder:

cd
mkdir buildspace

# Download LLVM/Clang/LLDB and build them.
git clone https://github.com/llvm/llvm-project.git
mkdir llvm-inst
mkdir llvm-build
cd llvm-build

cmake -DLLVM_ENABLE_PROJECTS="clang;lldb;libcxx;libcxxabi" -DCMAKE_INSTALL_PREFIX=~/buildspace/llvm-inst/ -GNinja ../llvm-project/llvm
ninja
ninja install

# Download lldb-mi and build it against our custom installation.
cd ~/buildspace
git clone https://github.com/lldb-tools/lldb-mi
cd lldb-mi

# Create a separate build directory for building lldb-mi.
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=~/buildspace/llvm-inst/ -GNinja ..
ninja

About

LLDB's machine interface driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.8%
  • Other 0.2%