Minor change to stackwalker.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -284,11 +284,10 @@ int wxStackWalker::InitFrames(wxStackFrame *arr, size_t n, void **addresses, cha
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!name.empty() || !filename.empty())
|
// now we've got enough info to initialize curr-th stack frame
|
||||||
{
|
// (at worst, only addresses[i] and syminfo[i] have been initialized,
|
||||||
// now we've got enough info to initialize curr-th stack frame:
|
// but wxStackFrame::OnGetName may still be able to get function name):
|
||||||
arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
|
arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return curr;
|
return curr;
|
||||||
|
Reference in New Issue
Block a user