Fix errors in 0b69756110db444282c40ea16929186b2910c3b1
authorWalter Erquinigo <a20012251@gmail.com>
Wed, 31 Mar 2021 00:53:57 +0000 (17:53 -0700)
committerWalter Erquinigo <a20012251@gmail.com>
Wed, 31 Mar 2021 01:03:02 +0000 (18:03 -0700)
Errors found in
https://lab.llvm.org/buildbot/#/builders/68/builds/9681/steps/6/logs/stdio

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

index 7c62904..3aa1d30 100644 (file)
@@ -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;
 }
index 0a9a42a..4eeec62 100644 (file)
@@ -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