Rechercher

PythonReactSEOPDF
GitHub Skill

ghidra

Ghidra CLI tool reference

dbalatoni13☆ 91 Étoiles du dépôt8 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

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.

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-03-11
Mise à jour de l’index
2026-03-11
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

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