# ExportNamedFunctions

> **Tool `tools/ghidra/ExportNamedFunctions.java`** (ghidra, Ghidra scripts). Decompile functions whose Ghidra names contain any supplied search term.

A Ghidra script: `scripts/ghidra-export.sh` and `scripts/ghidra-run.sh` run it headless. [Source on GitHub](https://github.com/tanepiper/game-frame/blob/main/tools/ghidra/ExportNamedFunctions.java).

## Its own help

This is the help text in the tool itself, as `./gameframe tool ExportNamedFunctions` prints it.

```text
Decompile functions whose Ghidra names contain any supplied search term.
Usage: analyzeHeadless PROJECT NAME -process PROGRAM -noanalysis -scriptPath tools/ghidra \
  -postScript ExportNamedFunctions.java OUTPUT.txt TERM [TERM ...]
```
