[Lldb-commits] [lldb] [debugserver] Implement MultiMemRead packet (PR #162670)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 10 11:41:03 PDT 2025


================
@@ -3160,6 +3165,140 @@ rnb_err_t RNBRemote::HandlePacket_m(const char *p) {
   return SendPacket(ostrm.str());
 }
 
+/// Returns true if `str` starts with `prefix`.
+static bool starts_with(std::string_view str, std::string_view prefix) {
+  return str.size() >= prefix.size() &&
+         str.compare(0, prefix.size(), prefix) == 0;
----------------
jasonmolenda wrote:

debugserver doesn't link to llvm or lldb, today.  it does include a socket header from the lldb sources, but everything in there is defined in the header.  it does allow us to build debugserver entirely separately from the rest of llvm/lldb, handy when cross compiling to a different target quickly, via its Xcode project file.

https://github.com/llvm/llvm-project/pull/162670


More information about the lldb-commits mailing list