示例#1
0
            public void OnProcessExit(DebuggerProcess Process, uint ExitCode)
            {
                int remainingThreads = Process.Threads.Count;

                frm.DebugLog($"Process exited {Process.ProcessID} ({NtStatus.PrettyPrint(ExitCode)})");
                frm.DebugLog($"{remainingThreads} child thread(s) remain open");

                frm.DebugModules.Clear();

                // Ask to close if the process was forced to exit
                if (ExitCode == 1)
                {
                    if (frm.DebugAsk("The debugger was detached from the host\n\nDo you want to close the debugger?"))
                    {
                        frm.Close();
                    }
                }
            }
示例#2
0
 public void OnThreadExit(DebuggerThread Thread, uint ExitCode)
 {
     frm.DebugLog(string.Format("Thread exited {0} ({1})", Thread.ThreadID, NtStatus.PrettyPrint(ExitCode)));
     frm.DebugThreads.Remove(Thread);
 }
示例#3
0
 public void OnThreadExit(DebuggerThread Thread, uint ExitCode)
 {
     frm.DebugLog($"Thread exited {Thread.ThreadID} ({NtStatus.PrettyPrint(ExitCode)})");
     frm.DebugThreads.Remove(Thread);
 }