Added new parameter "skipIframes" to arch_debug_get_stack_trace(). That

many iframes are supposed to be skipped before recording the stack
trace. Currently implemented for x86 only.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27529 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-09-15 13:09:14 +00:00
parent 7bc02c61bd
commit e670fc6f63
7 changed files with 39 additions and 8 deletions
+2 -1
View File
@@ -1158,7 +1158,8 @@ capture_tracing_stack_trace(int32 maxCount, int32 skipFrames, bool userOnly)
if (stackTrace != NULL) {
stackTrace->depth = arch_debug_get_stack_trace(
stackTrace->return_addresses, maxCount, skipFrames + 1, userOnly);
stackTrace->return_addresses, maxCount, 0, skipFrames + 1,
userOnly);
}
return stackTrace;