[Lldb-commits] [lldb] [lldb][GDBRemote] Parse MultiBreakpoint+ capability (PR #192962)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 27 01:37:22 PDT 2026
================
@@ -729,3 +729,25 @@ TEST_F(GDBRemoteCommunicationClientTest, MultiMemReadNotSupported) {
ASSERT_FALSE(client.GetMultiMemReadSupported());
async_result.wait();
}
+
+TEST_F(GDBRemoteCommunicationClientTest, MultiBreakpointdSupported) {
+ std::future<bool> async_result = std::async(std::launch::async, [&] {
+ StringExtractorGDBRemote qSupported_packet_request;
+ server.GetPacket(qSupported_packet_request);
+ server.SendPacket("jMultiBreakpoint+;");
+ return true;
+ });
+ ASSERT_TRUE(client.GetMultiBreakpointSupported());
+ async_result.wait();
+}
+
+TEST_F(GDBRemoteCommunicationClientTest, MultiBreakpointdNotSupported) {
+ std::future<bool> async_result = std::async(std::launch::async, [&] {
+ StringExtractorGDBRemote qSupported_packet_request;
+ server.GetPacket(qSupported_packet_request);
+ server.SendPacket(";");
+ return true;
+ });
+ ASSERT_FALSE(client.GetMultiBreakpointSupported());
+ async_result.wait();
+}
----------------
DavidSpickett wrote:
I think we could have a single test that checks all the default values rather than adding a whole new test for each new thing.
You're following the pattern here so it's fine but I just noticed it now.
https://github.com/llvm/llvm-project/pull/192962
More information about the lldb-commits
mailing list