Patch by Andreas Faerber: stack_trace(): Skip stack_trace() itself in the

stack trace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-06-06 13:05:47 +00:00
parent 48f2523d15
commit e845f05e28
+1 -1
View File
@@ -124,7 +124,7 @@ stack_trace(int argc, char **argv)
if (argc < 2) {
thread = thread_get_current_thread();
framePointer = (addr_t)get_current_stack_frame();
framePointer = (addr_t)get_current_stack_frame()->previous;
} else {
// TODO: Add support for stack traces of other threads.
/* thread_id id = strtoul(argv[1], NULL, 0);