From 8ac552e4d1ebb19e158225896f2a5fb3ad381893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 21 Aug 2007 10:26:54 +0000 Subject: [PATCH] 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 --- src/system/kernel/arch/x86/arch_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_debug.c b/src/system/kernel/arch/x86/arch_debug.c index a25e20aaab..288e46566d 100644 --- a/src/system/kernel/arch/x86/arch_debug.c +++ b/src/system/kernel/arch/x86/arch_debug.c @@ -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;