summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp5
-rw-r--r--lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
index a121f8d3afd..b6ba70289d9 100644
--- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
@@ -957,9 +957,8 @@ ProcessWindows::OnDebugException(bool first_chance,
}
if (!first_chance) {
- // Not any second chance exception is an application crash by definition.
- // It may be an expression evaluation crash.
- SetPrivateState(eStateStopped);
+ // Any second chance exception is an application crash by definition.
+ SetPrivateState(eStateCrashed);
}
ExceptionResult result = ExceptionResult::SendToApplication;
diff --git a/lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
index cd4f3f64b9b..b3f507128f8 100644
--- a/lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/RegisterContextWindows.cpp
@@ -42,7 +42,7 @@ bool RegisterContextWindows::ReadAllRegisterValues(
lldb::DataBufferSP &data_sp) {
if (!CacheAllRegisterValues())
return false;
- if (!data_sp || data_sp->GetByteSize() < sizeof(m_context)) {
+ if (data_sp->GetByteSize() < sizeof(m_context)) {
data_sp.reset(new DataBufferHeap(sizeof(CONTEXT), 0));
}
memcpy(data_sp->GetBytes(), &m_context, sizeof(m_context));
OpenPOWER on IntegriCloud