Author: Jonas Devlieghere Date: 2026-06-25T07:30:54-07:00 New Revision: acff1e5417dde747ba0f18ccac1366c87de60adf
URL: https://github.com/llvm/llvm-project/commit/acff1e5417dde747ba0f18ccac1366c87de60adf DIFF: https://github.com/llvm/llvm-project/commit/acff1e5417dde747ba0f18ccac1366c87de60adf.diff LOG: [lldb] Don't fail scripted frame construction on WebAssembly (#205692) Added: Modified: lldb/examples/python/templates/scripted_process.py Removed: ################################################################################ diff --git a/lldb/examples/python/templates/scripted_process.py b/lldb/examples/python/templates/scripted_process.py index af21c80e6896d..18777ded6c556 100644 --- a/lldb/examples/python/templates/scripted_process.py +++ b/lldb/examples/python/templates/scripted_process.py @@ -532,6 +532,13 @@ def get_register_info(self): elif "hexagon" in self.arch: self.register_info["sets"] = ["General Purpose Registers"] self.register_info["registers"] = HEXAGON_GPR + elif "wasm" in self.arch: + # WebAssembly is a stack machine with no general-purpose + # register file, so there is no GPR layout to expose. Leave + # the register info empty rather than raising, which would + # otherwise prevent the scripted frame from constructing. + self.register_info["sets"] = [] + self.register_info["registers"] = [] else: raise ValueError("Unknown architecture", self.arch) return self.register_info _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
