Fixed dumping the stack trace for the current thread by ID - that should have
been a warning (at least in C++ it is). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -172,7 +172,7 @@ stack_trace(int argc, char **argv)
|
|||||||
// read %ebp from the thread's stack stored by a pushad
|
// read %ebp from the thread's stack stored by a pushad
|
||||||
ebp = thread->arch_info.current_stack.esp[2];
|
ebp = thread->arch_info.current_stack.esp[2];
|
||||||
} else
|
} else
|
||||||
thread == NULL;
|
thread = NULL;
|
||||||
} else if (argc > 2) {
|
} else if (argc > 2) {
|
||||||
kprintf("usage: %s [thread id]\n", argv[0]);
|
kprintf("usage: %s [thread id]\n", argv[0]);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user