Module: sems
Branch: master
Commit: c180e524989a1c01d4335c48434f0e6cf4d5a437
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=c180e524989a1c01d4335c48434f0e6cf4d5a437

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Thu Jul 10 14:14:39 2014 +0200

dbg:add code addr to stacktrace (for addr2line)

patch by Raphael

---

 core/log.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/log.cpp b/core/log.cpp
index 67ddc13..d1de02f 100644
--- a/core/log.cpp
+++ b/core/log.cpp
@@ -215,7 +215,7 @@ void log_stacktrace(int ll)
    int i, frames = backtrace(callstack, 128);
    char** strs = backtrace_symbols(callstack, frames);
    for (i = 0; i < frames; ++i) {
-     _LOG(ll,"stack-trace(%i): %s", i, strs[i]);
+     _LOG(ll,"stack-trace(%i/[%p]): %s", i, callstack[i], strs[i]);
    }
    free(strs);
 }

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to