Add additional informations stack in wxDebugReport
Always add offset and address of a stack element, even if there is no symbolic function name, as this can still be helpful. If possible add module as well. Closes https://github.com/wxWidgets/wxWidgets/pull/940
This commit is contained in:
committed by
Vadim Zeitlin
parent
7a8e314736
commit
d173ccdb96
@@ -131,10 +131,14 @@ void XmlStackWalker::OnStackFrame(const wxStackFrame& frame)
|
||||
NumProperty(nodeFrame, wxT("level"), frame.GetLevel());
|
||||
wxString func = frame.GetName();
|
||||
if ( !func.empty() )
|
||||
{
|
||||
nodeFrame->AddAttribute(wxT("function"), func);
|
||||
HexProperty(nodeFrame, wxT("offset"), frame.GetOffset());
|
||||
}
|
||||
|
||||
HexProperty(nodeFrame, wxT("offset"), frame.GetOffset());
|
||||
HexProperty(nodeFrame, wxT("address"), reinterpret_cast<long unsigned int>(frame.GetAddress()));
|
||||
|
||||
wxString module = frame.GetModule();
|
||||
if ( !module.empty() )
|
||||
nodeFrame->AddAttribute(wxT("module"), module);
|
||||
|
||||
if ( frame.HasSourceLocation() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user