本文整理汇总了C++中LLDBEvent::GetBacktrace方法的典型用法代码示例。如果您正苦于以下问题:C++ LLDBEvent::GetBacktrace方法的具体用法?C++ LLDBEvent::GetBacktrace怎么用?C++ LLDBEvent::GetBacktrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLDBEvent
的用法示例。
在下文中一共展示了LLDBEvent::GetBacktrace方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnLLDBStopped
void MainDialog::OnLLDBStopped(LLDBEvent& e)
{
e.Skip();
wxString msg;
msg << "Process stopped. " << e.GetFileName() << ":" << e.GetLinenumber();
m_textCtrlLog->AppendText(msg + "\n");
m_textCtrlLog->AppendText("Backtrace:\n");
m_textCtrlLog->AppendText(e.GetBacktrace().ToString() + "\n");
// If we have an "Interrupt reason" set, then the stop was due to user request
// handle this separately
if ( e.GetInterruptReason() == kInterruptReasonApplyBreakpoints ) {
// Apply breakpoints failed, due to debugger can not interact
// now that we stopped - try it again
m_connector.ApplyBreakpoints();
m_connector.Continue();
} else if ( e.GetInterruptReason() == kInterruptReasonDeleteAllBreakpoints ) {
// Could not delete all breakpoints because the debugger was not
// in an interactive mode - do it now
m_connector.DeleteBreakpoints();
m_connector.Continue();
}
}