xujuntwt95329 wrote:

> I already tried to use `register read` to access Wasm variables without 
> success. But it was the patch available 
> [here](https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/build-scripts/lldb_wasm.patch)
>  is part of WAMR, maybe this patch is different and will make it work. I 
> tried using this patch without success.
> 
> It seems like compiling lldb with this patch and use it to debug Wasm with 
> the latest version of WAMR / iwasm do not work correctly (at least for me). 
> lldb can connect to the server embedded into iwasm but doesn't seem to be 
> able to disassemble Wasm bytecode or set breakpoints. Just giving the info 
> here because I'm not sure this patch is supposed to be straightaway 
> compatible with WAMR.

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

And since this PR is not merged, you need to use the [wasm_debug_2024] branch 
in my forked WAMR repo for testing: 
https://github.com/xujuntwt95329/wasm-micro-runtime/tree/wasm_debug_2024

https://github.com/llvm/llvm-project/pull/77949
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to