summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-10-27 02:52:04 +0000
committerJim Ingham <jingham@apple.com>2012-10-27 02:52:04 +0000
commit4dc613b364296d57d8d12cb2f1285d54b21064f1 (patch)
tree78c282ea86a50e087f0b8cb68ba549a8ceac55ac /lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
parent668bf82658f44105d96ea8f780ec967e86c50fc7 (diff)
downloadbcm5719-llvm-4dc613b364296d57d8d12cb2f1285d54b21064f1.tar.gz
bcm5719-llvm-4dc613b364296d57d8d12cb2f1285d54b21064f1.zip
If we got what looks like a single step exception but we weren't single stepping then just report
the raw exception. llvm-svn: 166859
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp b/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
index 87c9962ac0a..a15b8a90034 100644
--- a/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
+++ b/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
@@ -365,7 +365,8 @@ StopInfoMachException::CreateStopReasonWithMachException
return StopInfo::CreateStopReasonWithWatchpointID(thread, wp_sp->GetID());
}
// EXC_ARM_DA_DEBUG seems to be reused for EXC_BREAKPOINT as well as EXC_BAD_ACCESS
- return StopInfo::CreateStopReasonToTrace(thread);
+ if (thread.GetTemporaryResumeState() == eStateStepping)
+ return StopInfo::CreateStopReasonToTrace(thread);
}
else if (exc_code == 1)
{
@@ -405,7 +406,8 @@ StopInfoMachException::CreateStopReasonWithMachException
return StopInfoSP();
}
- if (is_trace_if_software_breakpoint_missing)
+ // Don't call this a trace if we weren't single stepping this thread.
+ if (is_trace_if_software_breakpoint_missing && thread.GetTemporaryResumeState() == eStateStepping)
{
return StopInfo::CreateStopReasonToTrace (thread);
}
OpenPOWER on IntegriCloud