diff options
author | Pavel Labath <labath@google.com> | 2018-05-15 13:42:26 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-05-15 13:42:26 +0000 |
commit | 245dd2e0c76648b8f875a2f45003ffd8614eb6d6 (patch) | |
tree | be88759a81c898b69e633104c714d6ded212540f /lldb/unittests/tools/lldb-server | |
parent | 349506a926c78af36cdcac75d44ac7522f168d06 (diff) | |
download | bcm5719-llvm-245dd2e0c76648b8f875a2f45003ffd8614eb6d6.tar.gz bcm5719-llvm-245dd2e0c76648b8f875a2f45003ffd8614eb6d6.zip |
Reapply "Remove Process references from the Host module"
This re-lands r332250/D46395, after fixing Mac build errors.
llvm-svn: 332353
Diffstat (limited to 'lldb/unittests/tools/lldb-server')
-rw-r--r-- | lldb/unittests/tools/lldb-server/tests/TestClient.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/unittests/tools/lldb-server/tests/TestClient.cpp b/lldb/unittests/tools/lldb-server/tests/TestClient.cpp index 2410b6270f2..3dd5be2c6e8 100644 --- a/lldb/unittests/tools/lldb-server/tests/TestClient.cpp +++ b/lldb/unittests/tools/lldb-server/tests/TestClient.cpp @@ -97,6 +97,11 @@ Expected<std::unique_ptr<TestClient>> TestClient::launchCustom(StringRef Log, Ar Info.SetArchitecture(arch_spec); Info.SetArguments(args, true); Info.GetEnvironment() = Host::GetEnvironment(); + // TODO: Use this callback to detect botched launches. If lldb-server does not + // start, we can print a nice error message here instead of hanging in + // Accept(). + Info.SetMonitorProcessCallback(&ProcessLaunchInfo::NoOpMonitorCallback, + false); status = Host::LaunchProcess(Info); if (status.Fail()) |