================
@@ -84,6 +86,39 @@ std::shared_ptr<ThreadGDBRemote>
ProcessWasm::CreateThread(lldb::tid_t tid) {
return std::make_shared<ThreadWasm>(*this, tid);
}
+size_t ProcessWasm::ReadGlobal(uint32_t index, void *buf, size_t size,
+ Status &error) {
+ // The protocol asks for a global relative to a frame, so a read needs one.
+ ThreadSP thread = GetThreadList().GetSelectedThread();
+ StackFrameSP frame =
----------------
felipepiovezan wrote:
I think this is the crux of the problem: this is essentially choosing a random
frame / module id. The caller `ProcessWasm::ReadMemory` knows exactly which
module to read from, but protocol doesn't support being told which module to
look at...
https://github.com/llvm/llvm-project/pull/212516
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits