harbor run -t LiteCoder/build-lldb-python-scriptsharbor download LiteCoder/build-lldb-python-scriptsCreate a complete set of build automation scripts for building LLDB from the LLVM project source on Ubuntu 22.04, with Python bindings enabled and code signing configured for debugging system processes.
/app/You must produce the following files:
/app/install_deps.sh — A Bash script that installs all system dependencies and build tools required for compiling LLVM/LLDB with Python bindings on Ubuntu 22.04. Requirements:
#!/bin/bash and use set -eapt-get to install packagescmake, ninja-build, python3-dev, swig, libxml2-dev, libedit-dev, libncurses5-dev, clang, g++apt-get update before installing/app/build_lldb.sh — A Bash script that clones the LLVM repository and builds LLDB. Requirements:
#!/bin/bash and use set -ehttps://github.com/llvm/llvm-project.git with --depth 1cmake with at least the following settings:
-G Ninja)LLVM_ENABLE_PROJECTS must include clang;lldbLLDB_ENABLE_PYTHON set to ONLLDB_ENABLE_LIBEDIT set to ONLLDB_ENABLE_CURSES set to ONninja or cmake --buildninja install or cmake --install/app/codesign_setup.sh — A Bash script that creates a self-signed certificate and signs the LLDB binary. Requirements:
#!/bin/bash and use set -eopensslcodesign, sbsign, or gpg --sign or similar signing mechanism)lldb binary path for signing/app/verify_install.sh — A Bash script that verifies the LLDB installation and Python bindings. Requirements:
#!/bin/bash and use set -elldb binary exists and is executable (e.g., lldb --version)lldb (e.g., python3 -c "import lldb; ...")/app/test_debug.sh — A Bash script that compiles a sample C++ program and tests debugging it with LLDB. Requirements:
#!/bin/bash and use set -e.cpp file)main function and at least one variable assignment-g flag)lldb in batch/non-interactive mode to run a debugging session on the compiled binary (e.g., using --batch, -o, or -s flags)/app/lldb_api_script.py — A Python script that uses the LLDB Python API. Requirements:
lldblldb.SBDebugger.Create() to create a debugger instanceCreateTarget or CreateTargetWithFileAndArch)BreakpointCreateByName or BreakpointCreateByLocation)lldb.SBDebugger.Destroy() to clean up the debugger instanceAll .sh files must be executable (have execute permissions).