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

Quentin Michaud via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 25 07:30:15 PST 2024


mh4ck-Thales wrote:

> Hi @mh4ck-Thales this is caused by [#77949 (comment)](https://github.com/llvm/llvm-project/pull/77949#discussion_r1463458728), currently we need to modify it manually.

Thanks! That did the trick for the breakpoint and disassembly problems. When using `read register` I can only see `pc` and nothing else though. I'm not sure assimilating Wasm variables to registers is the good way to go anyway, because the number of Wasm variables is not fixed in advance, and subject to the context of execution (with local variables). This is not the case at all for classic CPU registers, and I'm not sure the generic code managing registers in lldb will support that. Using a solution like @jimingham proposed with subcommands of `language wasm` may be a easier, less bug prone way to implement this. 

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


More information about the lldb-commits mailing list