#include "TestClient.h"
#include "TestingSupport/Host/SocketTestUtilities.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/common/TCPSocket.h"
#include "lldb/Host/posix/ConnectionFileDescriptorPosix.h"
#include "lldb/Utility/Args.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Path.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
#include <cstdlib>
#include <future>
#include <sstream>
#include <string>
usingnamespacelldb;
usingnamespacelldb_private;
usingnamespacellvm;
usingnamespacellgs_tests;
TestClient::TestClient(std::unique_ptr<Connection> Conn) { … }
TestClient::~TestClient() { … }
Error TestClient::initializeConnection() { … }
Expected<std::unique_ptr<TestClient>> TestClient::launch(StringRef Log) { … }
Expected<std::unique_ptr<TestClient>> TestClient::launch(StringRef Log, ArrayRef<StringRef> InferiorArgs) { … }
Expected<std::unique_ptr<TestClient>>
TestClient::launchCustom(StringRef Log, bool disable_stdio,
ArrayRef<StringRef> ServerArgs,
ArrayRef<StringRef> InferiorArgs) { … }
Error TestClient::SetInferior(llvm::ArrayRef<std::string> inferior_args) { … }
Error TestClient::ListThreadsInStopReply() { … }
Error TestClient::SetBreakpoint(unsigned long address) { … }
Error TestClient::ContinueAll() { … }
Error TestClient::ContinueThread(unsigned long thread_id) { … }
const llgs_tests::ProcessInfo &TestClient::GetProcessInfo() { … }
Expected<JThreadsInfo> TestClient::GetJThreadsInfo() { … }
const StopReply &TestClient::GetLatestStopReply() { … }
Error TestClient::SendMessage(StringRef message) { … }
Error TestClient::SendMessage(StringRef message, std::string &response_string) { … }
Error TestClient::SendMessage(StringRef message, std::string &response_string,
PacketResult expected_result) { … }
unsigned int TestClient::GetPcRegisterId() { … }
Error TestClient::qProcessInfo() { … }
Error TestClient::qRegisterInfos() { … }
Error TestClient::queryProcess() { … }
Error TestClient::Continue(StringRef message) { … }