[Lldb-commits] [lldb] [lldb] Add WebAssembly platform (PR #171507)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 11 03:59:46 PST 2025


================
@@ -0,0 +1,19 @@
+include "../../../../include/lldb/Core/PropertiesBase.td"
+
+let Definition = "platformwasm" in {
+  def RuntimePath : Property<"runtime-path", "FileSpec">,
+                    Global,
+                    DefaultStringValue<"">,
+                    Desc<"Path to the WebAssembly runtime binary.">;
+  def RuntimeArgs : Property<"runtime-args", "Args">,
+                    Global,
+                    DefaultStringValue<"">,
+                    Desc<"Extra arguments to pass to the WebAssembly runtime.">;
+  def PortArg : Property<"port-arg", "String">,
+                Global,
+                DefaultStringValue<"">,
+                Desc<"Argument to the WebAssembly runtime to specify the "
+                     "GDB remote port. The port number chosen by LLDB will be "
+                     "concatenated to this argument. For example: "
+                     "-g=127.0.0.1: or --debugger-port.">;
----------------
DavidSpickett wrote:

I suggested only keeping the `-g` example but now I realise because of the space issue, `--debugger port ` is good to include.

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


More information about the lldb-commits mailing list