on master help sign in
lldb: add gdbserver connection template
cde57daDmitry Sharshakov
languages.toml+18
@@ -29,6 +29,12 @@ request = "attach"
29completion = [ "pid" ]
29completion = [ "pid" ]
30args = { console = "internalConsole", pid = "{0}" }
30args = { console = "internalConsole", pid = "{0}" }
31
31
32+[[language.debugger.templates]]
33+name = "gdbserver attach"
34+request = "attach"
35+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
36+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
37+
32[[language]]
38[[language]]
33name = "toml"
39name = "toml"
34scope = "source.toml"
40scope = "source.toml"
@@ -97,6 +103,12 @@ request = "attach"
97completion = [ "pid" ]
103completion = [ "pid" ]
98args = { console = "internalConsole", pid = "{0}" }
104args = { console = "internalConsole", pid = "{0}" }
99
105
106+[[language.debugger.templates]]
107+name = "gdbserver attach"
108+request = "attach"
109+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
110+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
111+
100[[language]]
112[[language]]
101name = "cpp"
113name = "cpp"
102scope = "source.cpp"
114scope = "source.cpp"
@@ -125,6 +137,12 @@ request = "attach"
125completion = [ "pid" ]
137completion = [ "pid" ]
126args = { console = "internalConsole", pid = "{0}" }
138args = { console = "internalConsole", pid = "{0}" }
127
139
140+[[language.debugger.templates]]
141+name = "gdbserver attach"
142+request = "attach"
143+completion = [ { name = "lldb connect url", default = "connect://localhost:3333" }, { name = "file", completion = "filename" }, "pid" ]
144+args = { console = "internalConsole", attachCommands = [ "platform select remote-gdb-server", "platform connect {0}", "file {1}", "attach {2}" ] }
145+
128[[language]]
146[[language]]
129name = "c-sharp"
147name = "c-sharp"
130scope = "source.csharp"
148scope = "source.csharp"