# ExportAddressRefs

> **Tool `tools/ghidra/ExportAddressRefs.java`** (ghidra, Ghidra scripts). Export direct references and their containing functions for selected Ghidra addresses.

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/ExportAddressRefs.java).

## Its own help

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

```text
Export direct references and their containing functions for selected Ghidra addresses.
Usage: analyzeHeadless PROJECT NAME -process PROGRAM -noanalysis -scriptPath tools/ghidra \
  -postScript ExportAddressRefs.java OUTPUT.txt 0xADDRESS [0xADDRESS ...]
```
