From a4ee79c8ae5ca1bbfa8d78a2782918d1f23f15b2 Mon Sep 17 00:00:00 2001 From: Walter Erquinigo Date: Tue, 30 Mar 2021 17:53:57 -0700 Subject: [PATCH] Fix errors in 0b69756110db444282c40ea16929186b2910c3b1 Errors found in https://lab.llvm.org/buildbot/#/builders/68/builds/9681/steps/6/logs/stdio --- lldb/source/Target/Target.cpp | 2 +- lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 7c62904..3aa1d30 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -3092,7 +3092,7 @@ llvm::Expected Target::GetTraceOrCreate() { return llvm::createStringError( llvm::inconvertibleErrorCode(), "Couldn't start tracing the process. %s", - llvm::toString(trace_type.takeError()).c_str()); + llvm::toString(trace_sp.takeError()).c_str()); } return m_trace_sp; } diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index 0a9a42a..4eeec62 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -417,7 +417,7 @@ TEST_F(GDBRemoteCommunicationClientTest, SendTraceSupportedPacket) { HandlePacket(server, "jLLDBTraceSupported", R"({"type":"intel-pt"}])"); EXPECT_FALSE(result.get()); - ASSERT_STREQ(error_message.c_str(), "missing value at (root).description"); + ASSERT_STREQ(error_message.c_str(), "missing value at TraceSupportedResponse.description"); } // Error response -- 2.7.4