Function libudis86_sys::ud_set_sym_resolver
[−]
[src]
pub unsafe extern "C" fn ud_set_sym_resolver(
ud: *mut ud,
resolver: Option<unsafe extern "C" fn(_: *mut ud, _: u64, _: *mut i64) -> *const c_char>
)
Sets a symbol resolver for relative targets used in the translation phase.
The resolver is a function that takes a u64
address and returns a
symbolic name for the that address. The function also takes a second
argument pointing to an integer that the client can optionally set to a
non-zero value for offsetted targets. (symbol + offset) The function may
also return null
, in which case the translator only prints the target
address.
The function pointer maybe null
which resets symbol resolution.