[Lldb-commits] [lldb] [lldb] Implement WebAssembly debugging (PR #77949)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 20 22:11:16 PST 2024


================
@@ -1450,6 +1450,14 @@ class Process : public std::enable_shared_from_this<Process>,
   /// platforms where there is a difference (only Arm Thumb at this time).
   lldb::addr_t FixAnyAddress(lldb::addr_t pc);
 
+  /// Some targets might use bits in a code address to represent additional
+  /// information; for example WebAssembly targets have a different memory space
+  /// per module and have a different address space per memory and code.
+  virtual lldb::addr_t FixMemoryAddress(lldb::addr_t address,
----------------
clayborg wrote:

Above we have FixCodeAddres() and FixDataAddress(). Will this function fix any kind of address, or just a code address? If it is just code, then maybe we can just modify the above `FixCodeAddress(...)` and add the StackFrame to that API which can default to nullptr.

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


More information about the lldb-commits mailing list