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:
parent
27eab79b56
commit
8ac552e4d1
@ -172,7 +172,7 @@ stack_trace(int argc, char **argv)
|
||||
// read %ebp from the thread's stack stored by a pushad
|
||||
ebp = thread->arch_info.current_stack.esp[2];
|
||||
} else
|
||||
thread == NULL;
|
||||
thread = NULL;
|
||||
} else if (argc > 2) {
|
||||
kprintf("usage: %s [thread id]\n", argv[0]);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user