[Lldb-commits] [lldb] r350281 - Check that a pointer is valid and fix a log message on Windows

Aaron Smith via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 2 16:54:08 PST 2019


Author: asmith
Date: Wed Jan  2 16:54:08 2019
New Revision: 350281

URL: http://llvm.org/viewvc/llvm-project?rev=350281&view=rev
Log:
Check that a pointer is valid and fix a log message on Windows

Modified:
    lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindows.cpp

Modified: lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindows.cpp?rev=350281&r1=350280&r2=350281&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindows.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindows.cpp Wed Jan  2 16:54:08 2019
@@ -395,7 +395,7 @@ Status ProcessWindows::DoResume() {
       SetPrivateState(eStateRunning);
     }
   } else {
-    LLDB_LOG(log, "error: process %I64u is in state %u.  Returning...",
+    LLDB_LOG(log, "error: process {0} is in state {1}.  Returning...",
              m_session_data->m_debugger->GetProcess().GetProcessId(),
              GetPrivateState());
   }
@@ -884,7 +884,7 @@ void ProcessWindows::OnExitProcess(uint3
   // If the process exits before any initial stop then notify the debugger 
   // of the error otherwise WaitForDebuggerConnection() will be blocked.
   // An example of this issue is when a process fails to load a dependent DLL. 
-  if (!m_session_data->m_initial_stop_received) {
+  if (m_session_data && !m_session_data->m_initial_stop_received) {
     Status error(exit_code, eErrorTypeWin32);
     OnDebuggerError(error, 0);
   }




More information about the lldb-commits mailing list