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

Paolo Severini via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 22 05:38:18 PST 2024


paolosevMSFT wrote:

> > > A WebAssembly debugging session can be started using the new command:
> > > wasm [:]
> > 
> > 
> > What about wasm requires a new command, given that you are connecting to a GDB server as existing targets do.
> 
> +1! I don't think this needs a new command, it could just use `gdb-remote [<hostname>:]<portnum>` command.

It is true that a new command is not really necessary. This command also works:
` process connect --plugin wasm connect://localhost:8765`

But currently a simple `gdb-remote [<hostname>:]<portnum>` does not enable the "wasm' plugin. Is there a way to detect that we are debugging WebAssembly at connect time?

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


More information about the lldb-commits mailing list