Dart_DwarfStackTraceFootnoteCallback typedef

Dart_DwarfStackTraceFootnoteCallback = Pointer<NativeFunction<Pointer<Char> Function(Pointer<Pointer<Void>> addresses, IntPtr count)>>

Callback provided by the embedder that is used by the VM to produce footnotes appended to DWARF stack traces.

Whenever VM formats a stack trace as a string it would call this callback passing raw program counters for each frame in the stack trace.

Embedder can then return a string which if not-null will be appended to the formatted stack trace.

Returned string is expected to be malloc() allocated. VM takes ownership of the returned string and will free() it.

\param addresses raw program counter addresses for each frame \param count number of elements in the addresses array

Implementation

typedef Dart_DwarfStackTraceFootnoteCallback = ffi.Pointer<ffi.NativeFunction<ffi.Pointer<ffi.Char> Function(ffi.Pointer<ffi.Pointer<ffi.Void>> addresses, ffi.IntPtr count)>>;