Walter Erquinigo 2021-03-30 17:53:57 -07:00
parent 3a83b8b2d2
commit a4ee79c8ae
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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