[Lldb-commits] [lldb] a4ee79c - Fix errors in 0b69756110db444282c40ea16929186b2910c3b1

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 30 18:03:08 PDT 2021


Author: Walter Erquinigo
Date: 2021-03-30T18:03:02-07:00
New Revision: a4ee79c8ae5ca1bbfa8d78a2782918d1f23f15b2

URL: https://github.com/llvm/llvm-project/commit/a4ee79c8ae5ca1bbfa8d78a2782918d1f23f15b2
DIFF: https://github.com/llvm/llvm-project/commit/a4ee79c8ae5ca1bbfa8d78a2782918d1f23f15b2.diff

LOG: Fix errors in 0b69756110db444282c40ea16929186b2910c3b1

Errors found in
https://lab.llvm.org/buildbot/#/builders/68/builds/9681/steps/6/logs/stdio

Added: 
    

Modified: 
    lldb/source/Target/Target.cpp
    lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 7c62904302c9..3aa1d30cb776 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -3092,7 +3092,7 @@ llvm::Expected<TraceSP &> 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 0a9a42a81fde..4eeec62aee3c 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


        


More information about the lldb-commits mailing list