<p>After good digging in C libs and some linux commands I prepared (external at the moment) pretty nice stack tracing.</p>

<p><b>Please, test it in Your machine:</b> <a href="https://github.com/Kirizaki/stacktrace">https://github.com/Kirizaki/stacktrace</a></p>

<p>Output should be:</p>

<pre><code>/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::ProtectedParentFoo():17
/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::PublicParentFoo():12
/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::Parent():6
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooA(std::string):7
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooB(int):15
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooC(int):22
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:main():27
</code></pre>

<p>While I'm implementing it in Log class, please feel free to comment what should be refactored. And after all I will try my best to add MSVC implementation too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/380#issuecomment-159710111">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFMTmZLOZJh4XT9OHdQD8MBWBtE1ks5pJgWogaJpZM4DRaYY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/380#issuecomment-159710111"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>