Debugger stuff. Lots of wasted work :/

This commit is contained in:
Ben Vanik
2015-07-26 22:47:03 -07:00
parent 42ef3f224a
commit 7ecc6362de
52 changed files with 3476 additions and 172 deletions

View File

@@ -353,7 +353,7 @@ void KernelState::TerminateTitle(bool from_guest_thread) {
// Second: Kill all guest threads.
for (auto it = threads_by_id_.begin(); it != threads_by_id_.end();) {
if (it->second->guest_thread()) {
if (it->second->is_guest_thread()) {
auto thread = it->second;
if (from_guest_thread && XThread::IsInThread(thread)) {
@@ -362,7 +362,7 @@ void KernelState::TerminateTitle(bool from_guest_thread) {
continue;
}
if (thread->running()) {
if (thread->is_running()) {
thread->Terminate(0);
}
@@ -457,6 +457,10 @@ void KernelState::OnThreadExit(XThread* thread) {
xe::countof(args));
}
}
if (emulator()->debugger()) {
emulator()->debugger()->OnThreadExit(thread);
}
}
object_ref<XThread> KernelState::GetThreadByID(uint32_t thread_id) {