aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-10-24 14:34:24 +0000
committerDmitry Sharshakov2021-10-24 14:34:24 +0000
commitcde57dae356021c6ca8c2a2ed68777bd9d0bc0b2 (patch)
tree52a3c572a3c345be636dd04bff160483a820af97
parent6aa9838ea6c4c4a355796ef6dcc4dd28f2035c38 (diff)
lldb: add gdbserver connection template
Can be better customized in a personal languages.toml for perfect fit
-rw-r--r--languages.toml18
1 files changed, 18 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 981da557..050f1b4f 100644
--- a/languages.toml
+++ b/languages.toml
@@ -29,6 +29,12 @@ request = "attach"
completion = [ "pid" ]
args = { console = "internalConsole", pid = "{0}" }
+[[language.debugger.templates]]
+name = "gdbserver attach"
+request = "attach"
+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
+
[[language]]
name = "toml"
scope = "source.toml"
@@ -97,6 +103,12 @@ request = "attach"
completion = [ "pid" ]
args = { console = "internalConsole", pid = "{0}" }
+[[language.debugger.templates]]
+name = "gdbserver attach"
+request = "attach"
+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
+
[[language]]
name = "cpp"
scope = "source.cpp"
@@ -125,6 +137,12 @@ request = "attach"
completion = [ "pid" ]
args = { console = "internalConsole", pid = "{0}" }
+[[language.debugger.templates]]
+name = "gdbserver attach"
+request = "attach"
+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
+
[[language]]
name = "c-sharp"
scope = "source.csharp"