summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Windows
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2019-01-03 00:54:08 +0000
committerAaron Smith <aaron.smith@microsoft.com>2019-01-03 00:54:08 +0000
commitc28daec5b2f6213f58b88e152c258d0f1241bbaa (patch)
tree8a6bfc0d6d5164dad85b39918ac8f37e490667a0 /lldb/source/Plugins/Process/Windows
parent252b7f3e4f11d2d232c0daf9319a65d106bc5c2c (diff)
downloadbcm5719-llvm-c28daec5b2f6213f58b88e152c258d0f1241bbaa.tar.gz
bcm5719-llvm-c28daec5b2f6213f58b88e152c258d0f1241bbaa.zip
Check that a pointer is valid and fix a log message on Windows
llvm-svn: 350281
Diffstat (limited to 'lldb/source/Plugins/Process/Windows')
-rw-r--r--lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
index 48855b9ce0b..3fe5ab7804c 100644
--- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
@@ -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(uint32_t exit_code) {
// 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);
}
OpenPOWER on IntegriCloud