ExportAddressBatch
Tool
tools/ghidra/ExportAddressBatch.java(ghidra, Ghidra scripts). Decompile selected code addresses in an already analyzed Ghidra project.
A Ghidra script: scripts/ghidra-export.sh and scripts/ghidra-run.sh run it headless. Source on GitHub.
Its own help
This is the help text in the tool itself, as ./gameframe tool ExportAddressBatch prints it.
text
Decompile selected code addresses in an already analyzed Ghidra project.
Usage: analyzeHeadless PROJECT NAME -process PROGRAM -noanalysis -scriptPath tools/ghidra \
-postScript ExportAddressBatch.java OUTPUT.txt 0xADDRESS [0xADDRESS ...]