[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 12 10:11:55 PDT 2023


================
@@ -212,6 +212,21 @@ This loads the coredump file `/cores/123.core` associated with the program
 }
 ```
 
+### Connect to a Remote Debug Server
+
+This connects to a debug server (e.g. `lldb-server`, `gdbserver`) that is
+debugging the program `/tmp/a.out` and listening locally on port `2345`.
+
+```javascript
+{
+  "name": "Remote Debug Server",
----------------
clayborg wrote:

we are specifying the name "Remote Debug Server", but below we are attaching locally. It might be nice to have this either save "Attach to local GDB remote server", or leave the name the same and then change the "gdb-remote 2345" to "gdb-remote other.host.com:2345"

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


More information about the lldb-commits mailing list