]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor change to stackwalker.
authorRobert Roebling <robert@roebling.de>
Mon, 13 Nov 2006 15:03:30 +0000 (15:03 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 13 Nov 2006 15:03:30 +0000 (15:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/stackwalk.cpp

index 97612c94d12c28d4dc75ee167802b95f4e6398a6..6b8b6051c197c958fe284e243816b87425d8b08a 100644 (file)
@@ -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:
-            arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
-        }
+        // now we've got enough info to initialize curr-th stack frame
+        // (at worst, only addresses[i] and syminfo[i] have been initialized,
+        //  but wxStackFrame::OnGetName may still be able to get function name):
+        arr[curr++].Set(name, filename, syminfo[i], i, line, addresses[i]);
     }
 
     return curr;