]> Chaos Git - console/XDS.git/commitdiff
Added svcBreak logging
authorYifan Lu <me@yifanlu.com>
Fri, 25 Mar 2016 01:49:24 +0000 (20:49 -0500)
committerYifan Lu <me@yifanlu.com>
Fri, 25 Mar 2016 01:49:24 +0000 (20:49 -0500)
Added log entry for session connection

source/kernel/Swi.cpp

index 096bc211e19368a547aa8ed2081b1bd8c61121b1..4ad2c0c27fa183e14b86f04aecff6ec923dfcda0 100644 (file)
@@ -834,6 +834,7 @@ void ProcessSwi(u8 swi, u32 Reg[15], KThread * currentThread)
                     u32 hand;
                     if (temp->data->m_Client->connect(ses) == Success)
                     {
+                        LOG("Process %s thread %u connected to %s", currentThread->m_owner->GetName(), currentThread->m_thread_id, temp->data->m_Name);
                         s32 ret = currentThread->m_owner->GetHandleTable()->CreateHandle(hand, ses);
                         if (ret != Success)
                         {
@@ -1149,6 +1150,17 @@ void ProcessSwi(u8 swi, u32 Reg[15], KThread * currentThread)
         LOG("Process %s thread %u GetResourceLimitCurrentValues (%08x %08x %08x %08x | %08x)", currentThread->m_owner->GetName(), currentThread->m_thread_id, values_ptr, handleResourceLimit, names_ptr, nameCount, Reg[0]);
 #endif
         return;
+    }
+    case 0x3C:
+    {
+        XDSERROR("Breakpoint called from %08x, R0: %08x", Reg[14], Reg[0]);
+        Reg[0] = 0xF8C007F4;//TODO the 3DS would terminate the Process if it is realy unknown but some are just stubs
+        if (swi == 0x3C)
+        {
+            fflush(stdout);
+            while (1);
+        }
+        break;
     }
        case 0x3D:
        {