/GhidraClangTypes

Provides libclang-based source code parsing in Ghidra

Primary LanguageJavaISC LicenseISC

GhidraClangTypes

Provides libclang-based source code parsing in Ghidra

Building

  • Ensure you have JAVA_HOME set to the path of your JDK 17 installation.
  • Set GHIDRA_INSTALL_DIR to your Ghidra install directory. This can be done in one of the following ways:
    • Windows: Running set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>
    • macos/Linux: Running export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
    • Using -PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra> when running ./gradlew
    • Adding GHIDRA_INSTALL_DIR to your Windows environment variables.
  • Run ./gradlew
  • You'll find the output zip file inside /dist

Installation

  • Start Ghidra and use the "Install Extensions" dialog (File -> Install Extensions...).
  • Press the + button in the upper right corner.
  • Select the zip file in the file browser, then restart Ghidra.