[Lldb-commits] [lldb] [lldb] Implement RegisterContextWasm (PR #151056)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 30 07:28:55 PDT 2025


================
@@ -71,28 +124,62 @@ def qXferRead(self, obj, annex, offset, length):
         if obj == "libraries":
             xml = (
                 '<library-list><library name="%s"><section address="%d"/></library></library-list>'
-                % (self._module_name, load_address)
+                % (self._module_name, LOAD_ADDRESS)
             )
             return xml, False
         else:
             return None, False
 
     def readMemory(self, addr, length):
-        if addr < load_address:
+        if self._memory and self._memory.contains(addr):
+            chunk = self._memory.get_bytes(addr, length)
+            return chunk.hex()
----------------
JDevlieghere wrote:

Porbably? Do we actually run the test suite on a big endian platform? Not trying to say it's not important, but I don't have a platform to try on and I don't remember seeing other gdb_remote_client support that. 

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


More information about the lldb-commits mailing list