ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider provide a simple and standard way to output stack trace text

taozuhong opened this issue · comments

Consider provide a simple and standard way to output stack trace text

extern int backtrace_standard (struct backtrace_state *state, int skip, char** buffer, backtrace_error_callback error_callback, void *data);

How would this be different from backtrace_print?

backtrace_print output stack trace to file, but text buffer is more convenient: save to file or print

Well, you can do that using backtrace_full anyhow. I don't think it comes up often enough to add it to the library.