summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-08-03 22:24:48 +0000
committerEnrico Granata <egranata@apple.com>2012-08-03 22:24:48 +0000
commite2e091bd596cd3b079815dbb82a6919c04f55aa5 (patch)
tree929f705554f1a4f0b5a3c7b5d54559e2c2478d9e /lldb/source/Target/Target.cpp
parent1c465892908158b9fe05f873d940996469858307 (diff)
downloadbcm5719-llvm-e2e091bd596cd3b079815dbb82a6919c04f55aa5.tar.gz
bcm5719-llvm-e2e091bd596cd3b079815dbb82a6919c04f55aa5.zip
<rdar://problem/12027563> Making sure that some class of stop-hook commands that involve po'ing objects do not cause an endless recursion
llvm-svn: 161271
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 81601749a3d..95a13cfe6ae 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -1935,7 +1935,12 @@ Target::RunStopHooks ()
if (!m_process_sp)
return;
-
+
+ // <rdar://problem/12027563> make sure we check that we are not stopped because of us running a user expression
+ // since in that case we do not want to run the stop-hooks
+ if (m_process_sp->GetModIDRef().IsLastResumeForUserExpression())
+ return;
+
if (m_stop_hooks.empty())
return;
OpenPOWER on IntegriCloud