class
Cradare2::DSL::Disassembly
- Cradare2::DSL::Disassembly
- Reference
- Object
Overview
DSL for disassembling code and decompilation.
Defined in:
cradare2/dsl/disasm.crConstructors
Instance Method Summary
-
#annotated_source(target : UInt64 | Int32 | Int64 | String | Nil = nil) : String
DWARF / PDB line-annotated decompilation if line metadata is present (CLd).
-
#at(address : UInt64 | Int32 | Int64 | String, count : Int32 = 1) : Array(Model::Instruction)
Disassembles instructions starting at specified address.
-
#decompile(target : UInt64 | Int32 | Int64 | String | Nil = nil, auto_analyze : Bool = true, fallback_asm : Bool = true) : String
Decompiles current function or target to C-like pseudocode (pdc, or pdg if ghidra is available).
-
#function_instructions(target : UInt64 | Int32 | Int64 | String | Nil = nil) : Array(Model::Instruction)
Disassembles an entire function returning typed instructions.
-
#function_text(target : UInt64 | Int32 | Int64 | String | Nil = nil) : String
Disassembles an entire function by name or address as formatted text.
-
#instructions(count : Int32 = 10, at : UInt64 | Int32 | Int64 | String | Nil = nil) : Array(Model::Instruction)
Disassembles instructions at current seek or specified address returning typed instructions.
-
#side_by_side(target : UInt64 | Int32 | Int64 | String | Nil = nil, auto_analyze : Bool = true) : String
Decompiles function with side-by-side assembly instruction comparison (pdca).
-
#source_interleaved(target : UInt64 | Int32 | Int64 | String | Nil = nil, count : Int32 = 20) : String
Disassembles instructions interleaved with high-level source lines (pdls).
-
#text(count : Int32 = 10, at : UInt64 | Int32 | Int64 | String | Nil = nil) : String
Disassembles instructions at current seek or specified address as text.
Constructor Detail
Instance Method Detail
DWARF / PDB line-annotated decompilation if line metadata is present (CLd).
Disassembles instructions starting at specified address.
Decompiles current function or target to C-like pseudocode (pdc, or pdg if ghidra is available).
Optionally auto-analyzes function first (af @ <addr>) and falls back to disassembly (pdf) if decompilation fails.
Disassembles an entire function returning typed instructions.
Disassembles an entire function by name or address as formatted text.
Disassembles instructions at current seek or specified address returning typed instructions.
Decompiles function with side-by-side assembly instruction comparison (pdca).
Disassembles instructions interleaved with high-level source lines (pdls).
Disassembles instructions at current seek or specified address as text.