libcsdbg  1.28
C++ exception (and generic) stack trace debug library
thread & csdbg::thread::unwind ( )

Unwind the simulated call stack to meet the real call stack.


Definition at line 283 of file thread.cpp.

References likely, m_lag, and m_stack.

Referenced by csdbg::tracer::trace(), and csdbg::tracer::unwind().

284 {
285  while ( likely(m_lag > 0) ) {
286  m_stack->pop();
287  m_lag--;
288  }
290  return *this;
291 }
stack< call > * m_stack
Simulated call stack.
Definition: thread.hpp:37
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
i32 m_lag
The number of calls that must be popped off the simulated stack for it to match the real one...
Definition: thread.hpp:39

+ Here is the caller graph for this function: