Get the name/offset of the calling wasm function
Author: JamesDunneCreated Jan 31, 2022Updated Sep 14, 2026
LabelsfeatureAPI
When in a host function called from a wasm module, m3_GetBacktrace(runtime) returns a valid IM3BacktraceInfo but its fields (frames, lastFrame) are always NULL.
I'd like to use the backtrace to get the name/offset of the calling wasm function.
I have d_m3RecordBacktraces set to 1 in m_config.h.
Source: wasm3/wasm3