wasm_interp: debug print displays the called export

This commit is contained in:
Brian Carroll 2022-12-10 12:18:07 +00:00
parent eaf2782bbd
commit b585bd5fde
No known key found for this signature in database
GPG Key ID: 5C7B2EC4101703C0

View File

@ -224,6 +224,15 @@ impl<'a, I: ImportDispatcher> Instance<'a, I> {
module.types.look_up_arg_type_bytes(signature_index)
};
if self.debug_string.is_some() {
println!(
"Calling export func[{}] '{}' at address {:#x}",
fn_index,
fn_name,
self.program_counter + module.code.section_offset as usize
);
}
Ok(arg_type_bytes)
}