summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/db_trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c
index 0f0bbdc..cdebde1 100644
--- a/i386/i386/db_trace.c
+++ b/i386/i386/db_trace.c
@@ -533,6 +533,8 @@ db_find_kthread(
task_t task)
{
thread_t thread;
+ if (task == TASK_NULL)
+ task = db_current_task();
queue_iterate(&task->thread_list, thread, thread_t, thread_list) {
vm_offset_t usp = thread->pcb->iss.uesp/*ebp works*/;