summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-02 18:50:01 +0000
committerZachary Turner <zturner@google.com>2015-02-02 18:50:01 +0000
commit6fd3f34d1f1e4f5efd4e3ea2220cd81797b1105d (patch)
tree5ff994c4e1d97f882b7f521b9be7e7742e37b2dd /lldb/source/API
parent6ff7ed6446d69dbaaf2b6086234e57dfa14cf89d (diff)
downloadbcm5719-llvm-6fd3f34d1f1e4f5efd4e3ea2220cd81797b1105d.tar.gz
bcm5719-llvm-6fd3f34d1f1e4f5efd4e3ea2220cd81797b1105d.zip
Make SBTarget::Launch() respect the stop_at_entry argument.
Patch by Ilia K Differential Revision: http://reviews.llvm.org/D7271 llvm-svn: 227833
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBTarget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index b87b1acf45d..d87d156c1c9 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -729,6 +729,9 @@ SBTarget::Launch
{
Mutex::Locker api_locker (target_sp->GetAPIMutex());
+ if (stop_at_entry)
+ launch_flags |= eLaunchFlagStopAtEntry;
+
if (getenv("LLDB_LAUNCH_FLAG_DISABLE_ASLR"))
launch_flags |= eLaunchFlagDisableASLR;
OpenPOWER on IntegriCloud