Browse code

dbg:add code addr to stacktrace (for addr2line)

patch by Raphael

Stefan Sayer authored on 10/07/2014 12:14:39
Showing 1 changed files
... ...
@@ -215,7 +215,7 @@ void log_stacktrace(int ll)
215 215
    int i, frames = backtrace(callstack, 128);
216 216
    char** strs = backtrace_symbols(callstack, frames);
217 217
    for (i = 0; i < frames; ++i) {
218
-     _LOG(ll,"stack-trace(%i): %s", i, strs[i]);
218
+     _LOG(ll,"stack-trace(%i/[%p]): %s", i, callstack[i], strs[i]);
219 219
    }
220 220
    free(strs);
221 221
 }