pub trait CodeReader {
// Required methods
fn read_code_bytes(&self, address: u64, size: usize) -> Option<Vec<u8>>;
fn get_source_location_slow(&self, address: u64) -> Option<SourceLocation>;
fn find_next_stmt_address(&self, function_start: u64) -> Option<u64>;
}Expand description
Simplified context for code reading operations
Required Methods§
Sourcefn read_code_bytes(&self, address: u64, size: usize) -> Option<Vec<u8>>
fn read_code_bytes(&self, address: u64, size: usize) -> Option<Vec<u8>>
Read code bytes from the specified address
Sourcefn get_source_location_slow(&self, address: u64) -> Option<SourceLocation>
fn get_source_location_slow(&self, address: u64) -> Option<SourceLocation>
Get source location information for the given address
Sourcefn find_next_stmt_address(&self, function_start: u64) -> Option<u64>
fn find_next_stmt_address(&self, function_start: u64) -> Option<u64>
Find the next is_stmt=true address after the given function start address This is used for prologue detection following GDB’s approach
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".