wasmer icon indicating copy to clipboard operation
wasmer copied to clipboard

How to get function name from `wasm_frame_t`?

Open liamappelbe opened this issue 3 years ago • 0 comments

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?

liamappelbe avatar Sep 01 '22 17:09 liamappelbe