wasmer
wasmer copied to clipboard
How to get function name from `wasm_frame_t`?
I'm trying to make my trap handling code show a user friendly stack trace. I'd at least like to show which functions are hit in the trace.
Looking at the C API functions for wasm_frame_t, I can get the function index, function offset, and module offset, for a given frame. Function index sounds useful, but what is it an index into? Is there a way of looking up the name of a function from its index?