From e619e4590c218be15bf04f7893a5c168926d4a22 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Thu, 17 Dec 2015 18:27:03 -0600 Subject: [PATCH] debugger: Don't feed the stack walker an XThread's wait handle --- src/xenia/debug/debugger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/debug/debugger.cc b/src/xenia/debug/debugger.cc index bda4082f8..5e1252d2a 100644 --- a/src/xenia/debug/debugger.cc +++ b/src/xenia/debug/debugger.cc @@ -313,7 +313,7 @@ void Debugger::UpdateThreadExecutionStates(uint32_t override_handle, in_host_context = override_context; } size_t count = stack_walker->CaptureStackTrace( - thread->GetWaitHandle()->native_handle(), frame_host_pcs, 0, + thread->thread()->native_handle(), frame_host_pcs, 0, xe::countof(frame_host_pcs), in_host_context, &thread_info->host_context, &hash); stack_walker->ResolveStack(frame_host_pcs, cpu_frames, count);