The nightly std::backtrace::Backtrace has a debug format that is relatively easy to parse. There are plans to eventually add a frame iterator api to backtrace similar to backtrace-rs's Backtrace but it seems rather far off. Until then I think it makes sense to write a deserializer for the Debug format of backtrace, which should hopefully be pretty stable, and use that to build the Frame objects used internally to print the backtrace.
The nightly std::backtrace::Backtrace has a debug format that is relatively easy to parse. There are plans to eventually add a frame iterator api to backtrace similar to
backtrace-rs's Backtrace but it seems rather far off. Until then I think it makes sense to write a deserializer for theDebugformat of backtrace, which should hopefully be pretty stable, and use that to build theFrameobjects used internally to print the backtrace.