================
@@ -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'");
----------------
DavidSpickett wrote:
The setting name is great, it's the phrasing of the description that I think is
not ideal.
https://github.com/llvm/llvm-project/pull/183237
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits