class
Cradare2::Lines::LineResolver
- Cradare2::Lines::LineResolver
- Reference
- Object
Overview
Resolves source lines from binaries using a chain of pluggable LineProviders.
Defined in:
cradare2/lines/line_resolver.crConstructors
Instance Method Summary
- #client : Client
-
#find_llvm_symbolizer : String | Nil
Locates the
llvm-symbolizerbinary on the host system. - #map : SourceMap
- #providers : Array(LineProvider)
-
#query_r2_codelines : Hash(UInt64, SourceLocation)
Queries radare2's
CLjcommand to extract all loaded code-line entries. -
#register_provider(provider : LineProvider) : self
Registers an additional line provider into the resolution chain.
-
#resolve_address(address : UInt64) : SourceLocation | Nil
Resolves a single address through the provider chain.
-
#resolve_all_functions : SourceMap
Populates the source map for all analyzed functions in the binary.
-
#resolve_from_r2_codelines : Array(SourceLocation)
Convenience helper returning array of all resolved source locations from r2 codelines.
-
#resolve_function(offset : UInt64, name : String | Nil = nil, size : UInt64 = 64_u64) : SourceMap
Populates the source map for a function given its offset, name, and estimated size.
-
#resolve_function(fn : Model::Function) : SourceMap
Populates the source map for a single function model.
-
#resolve_instructions(instructions : Array(Model::Instruction), function_name : String | Nil = nil) : SourceMap
Resolves a list of instructions through the provider chain and adds them to the source map.
-
#resolve_target_binary_path : String | Nil
Returns the path of the opened binary by querying radare2 info.
Constructor Detail
Instance Method Detail
Queries radare2's CLj command to extract all loaded code-line entries.
Registers an additional line provider into the resolution chain.
Resolves a single address through the provider chain.
Populates the source map for all analyzed functions in the binary.
Convenience helper returning array of all resolved source locations from r2 codelines.
Populates the source map for a function given its offset, name, and estimated size.
Populates the source map for a single function model.
Resolves a list of instructions through the provider chain and adds them to the source map.
Returns the path of the opened binary by querying radare2 info.