Skip to content

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. An address inside no
function becomes a new function only when something refers to it or it follows a ret or
padding, so a call site is never made into a function that splits the real one. An address
that fails is reported in the output and the batch goes on.
Usage: analyzeHeadless PROJECT NAME -process PROGRAM -noanalysis -scriptPath tools/ghidra \
  -postScript ExportAddressBatch.java OUTPUT.txt 0xADDRESS [0xADDRESS ...]

Code: Apache 2.0. Content: CC0 1.0. No game material: bring your own copy.