Frames to skip now honoured for Unix stackwalking
Limited depth to 10 for assert dialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -221,9 +221,12 @@ void wxStackWalker::Walk(size_t skip)
|
||||
|
||||
char **symbols = backtrace_symbols(addresses, depth);
|
||||
|
||||
for ( int n = 0; n < depth; n++ )
|
||||
if (skip > (size_t) depth)
|
||||
skip = (size_t) depth;
|
||||
|
||||
for ( int n = skip; n < depth; n++ )
|
||||
{
|
||||
wxStackFrame frame(n, addresses[n], symbols[n]);
|
||||
wxStackFrame frame(n, addresses[n-skip], symbols[n-skip]);
|
||||
OnStackFrame(frame);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user