From 6e9994ee4114ad697af3616b1d89ee4a52000f1c Mon Sep 17 00:00:00 2001 From: gibbed Date: Tue, 22 May 2018 05:57:32 -0500 Subject: [PATCH] [Kernel] Log handle addditions/removals. --- src/xenia/kernel/util/object_table.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/kernel/util/object_table.cc b/src/xenia/kernel/util/object_table.cc index 857ca883b..20c1a9ceb 100644 --- a/src/xenia/kernel/util/object_table.cc +++ b/src/xenia/kernel/util/object_table.cc @@ -13,6 +13,7 @@ #include #include "xenia/base/byte_stream.h" +#include "xenia/base/logging.h" #include "xenia/kernel/xobject.h" #include "xenia/kernel/xthread.h" @@ -117,6 +118,8 @@ X_STATUS ObjectTable::AddHandle(XObject* object, X_HANDLE* out_handle) { // Retain so long as the object is in the table. object->Retain(); + + XELOGI("Added handle:%08X for %s", handle, typeid(*object).name()); } } @@ -200,6 +203,8 @@ X_STATUS ObjectTable::RemoveHandle(X_HANDLE handle) { object->handles().erase(handle_entry); } + XELOGI("Removed handle:%08X for %s", handle, typeid(*object).name()); + // Release now that the object has been removed from the table. object->Release(); }