[Lldb-commits] [PATCH] D144237: [lldb/Plugins] Add memory writing capabilities to Scripted Process
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 16 17:37:45 PST 2023
mib marked an inline comment as done.
mib added inline comments.
================
Comment at: lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp:310-311
+size_t ScriptedProcess::DoWriteMemory(lldb::addr_t vm_addr, const void *buf,
+ size_t size, Status &error) {
+ lldb::DataExtractorSP data_extractor_sp = std::make_shared<DataExtractor>(
----------------
bulbazord wrote:
> This function is added in this patch. Where is it used?
`Plugin::DoX` functions are usually implemented by plugins and gets called by the base component `Base::X` method. In this case, this will get called by the `Process::WriteMemory` method.
================
Comment at: lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp:325
+
+ return size;
+}
----------------
bulbazord wrote:
> Should this not return `bytes_written`?
+1
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144237/new/
https://reviews.llvm.org/D144237
More information about the lldb-commits
mailing list