[Lldb-commits] [lldb] [lldb] Part 2 of 2 - Refactor `CommandObject::DoExecute(...)` return `void` (not `bool`) (PR #69991)

Pete Lawrence via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 24 05:50:50 PDT 2023


================
@@ -1541,18 +1539,18 @@ class CommandObjectMemoryWrite : public CommandObjectParsed {
 
     if (!buffer.GetString().empty()) {
       Status error;
-      if (process->WriteMemory(addr, buffer.GetString().data(),
-                               buffer.GetString().size(),
-                               error) == buffer.GetString().size())
-        return true;
-      else {
+      const char *bufferData = buffer.GetString().data();
----------------
PortalPete wrote:

Ah yes, of course.
Done and done.

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


More information about the lldb-commits mailing list