================
@@ -90,6 +126,26 @@ void ProcessFreeBSDKernelCore::RefreshStateAfterStop() {
   }
 }
 
+size_t ProcessFreeBSDKernelCore::DoWriteMemory(lldb::addr_t addr,
+                                               const void *buf, size_t size,
+                                               Status &error) {
+  if (GetGlobalPluginProperties().GetReadOnly()) {
+    error = Status::FromErrorString(
+        "Memory writes are disabled in read-only mode. Disable with 'settings "
+        "set plugin.process.freebsd-kernel-core.read-only false'");
----------------
mchoo7 wrote:

I chose the name `read-only` to mimic unix file permissions (`RDONLY`). Do you 
think I should use `allow-memory-writes` instead?

https://github.com/llvm/llvm-project/pull/183237
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to