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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user