class
Cradare2::Lines::LineHelper
- Cradare2::Lines::LineHelper
- Reference
- Object
Overview
High-level DSL helper providing convenient access to source-line-to-assembly matching.
Accessible via client.crystal.lines or block forms.
Defined in:
cradare2/lines/line_helper.crConstructors
Instance Method Summary
-
#at(address : UInt64) : SourceLocation | Nil
Resolves and returns the source location for an instruction address.
- #client : Client
-
#for_line(file : String, line : Int32) : Array(InstructionMapping)
Returns all instructions that were compiled from the given source file and line.
-
#groups(target : String | UInt64) : Array(LineInstructionGroup)
Returns line instruction groups for a given function name or address.
-
#interleaved(target : String | UInt64) : String
Returns a formatted interleaved view showing source code lines alongside their generated assembly instructions.
-
#map : SourceMap
Returns the source map instance, lazily resolving lines from the binary if not yet loaded.
-
#reader : SourceReader
Returns the source reader instance.
-
#reload : SourceMap
Clears cached mappings and re-resolves from the target.
-
#resolve_all : SourceMap
Resolves line information for all analyzed functions in the binary.
-
#resolve_function(target : String | UInt64) : SourceMap
Resolves line information for a specific function by name or address.
-
#resolver : LineResolver
Returns the line resolver instance.
-
#sync_to_r2(annotate_comments : Bool = true) : Int32
Synchronizes all discovered source line mappings into radare2 (
CLandCC).
Constructor Detail
Instance Method Detail
Resolves and returns the source location for an instruction address.
Returns all instructions that were compiled from the given source file and line.
Returns line instruction groups for a given function name or address.
Returns a formatted interleaved view showing source code lines alongside their generated assembly instructions.
Returns the source map instance, lazily resolving lines from the binary if not yet loaded.
Resolves line information for all analyzed functions in the binary.
Resolves line information for a specific function by name or address.
Synchronizes all discovered source line mappings into radare2 (CL and CC).