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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 23 07:28:14 PST 2024


DavidSpickett wrote:

> 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?

Tracing down from `platform connect <no plugin option>`, I get to `Process::FindPlugin`, which creates a process of all the registered types then asks that process if it can debug that target.

Though, a lot of them just return true and you already have:
```
bool ProcessWasm::CanDebug(lldb::TargetSP target_sp,
                           bool plugin_specified_by_name) {
```
So I wonder if some other plugin is saying "yes I can debug this" before the wasm plugin has been asked. We must register the plugins in some order but not sure where that is done.


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


More information about the lldb-commits mailing list