ghidra | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / ghidra

ghidra

maintained by dbalatoni13

star 91 account_tree 8 verified_user MIT License
bolt View GitHub

name: ghidra description: Ghidra CLI tool reference

Ghidra CLI

The project contains two programs:

  • NFSMWRELEASE.ELF — Original GameCube ELF (default). Types and symbols loaded from the DWARF.
  • NFS.ELF — Alpha 124 build (PS2). Virtual function calls and the return value of _Find show up correctly.

Switch between them by specifying --program <name> at the end of each command.

Use -o compact for shorter output in the CLI. Use -o json for machine-readable output when scripting.

ghidra set-default project NeedForSpeed # set default project
ghidra decompile 0x80051324 -o compact  # decompile function at address
ghidra find function "AcceptScriptMsg"  # search by name
ghidra type get "CEntity"               # struct layout
ghidra disasm 0x80051324 -n 30 -o compact  # raw disassembly

Note: Ghidra uses short demangled names (e.g. AcceptScriptMsg matches all overrides). Use the address from config/GOWE69/symbols.txt for precise lookups for the GameCube version and config/SLES-53558-A124/symbols.txt for the PS2 version.

Important: Ghidra has no concept of const. All pointers, references, and member functions appear non-const in Ghidra output. Never infer const-qualification (or lack thereof) from Ghidra decompilation — use the dwarf info from the lookup skill.

Disassembly

Ghidra's disassembly output is fine for quick reference, but it's better to reference decomp-toolkit's generated disassembly files in build/GAMEID/asm/ which contain more information (e.g. symbol names, relocation targets, data values) and are easily grepable.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 91
GitHub Forks 8
Created Mar 2026
Last Updated il y a 3 mois
tools tools cli tools

Related Skills

figma-use
chevron_right
discover-tui
chevron_right
slash-command-factory
chevron_right
createcli
chevron_right
webbrowser
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.