================ @@ -403,6 +403,22 @@ void GDBRemoteCommunicationClient::GetRemoteQSupported() { x.split(compressions, ','); if (!compressions.empty()) MaybeEnableCompression(compressions); + } else if (x.consume_front("SupportedWatchpointTypes=")) { + llvm::SmallVector<llvm::StringRef, 4> watchpoint_types; + x.split(watchpoint_types, ','); + m_watchpoint_types = + WatchpointHardwareFeature::eWatchpointHardwareFeatureUnknown; + for (auto wp_type : watchpoint_types) { + if (wp_type == "x86_64") + m_watchpoint_types |= + WatchpointHardwareFeature::eWatchpointHardwareX86; + if (wp_type == "aarch64-mask") + m_watchpoint_types |= + WatchpointHardwareFeature::eWatchpointHardwareArmMASK; + if (wp_type == "aarch64-bas") + m_watchpoint_types |= + WatchpointHardwareFeature::eWatchpointHardwareArmBAS; + } ---------------- DavidSpickett wrote:
Also I wonder if this should be case insensitive, but I doubt it'll ever be an issue. If compression types does that then sure, if not, it's fine as is. https://github.com/llvm/llvm-project/pull/80376 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits