on master help sign in
lldb: add gdbserver connection template

Can be better customized in a personal languages.toml for perfect fit

commitcde57dae356021c6ca8c2a2ed68777bd9d0bc0b2 authorDmitry Sharshakov <d3dx12.xx@gmail.com> dateSun 24 Oct 2021, 17:34 (5 years ago) parent6aa9838
1 file changed+18
languages.toml+18
languages.toml+18
@@ -29,6 +29,12 @@ request = "attach"
2929completion = [ "pid" ]
3030args = { console = "internalConsole", pid = "{0}" }
3131
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+
3238[[language]]
3339name = "toml"
3440scope = "source.toml"
@@ -97,6 +103,12 @@ request = "attach"
97103completion = [ "pid" ]
98104args = { console = "internalConsole", pid = "{0}" }
99105
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+
100112[[language]]
101113name = "cpp"
102114scope = "source.cpp"
@@ -125,6 +137,12 @@ request = "attach"
125137completion = [ "pid" ]
126138args = { console = "internalConsole", pid = "{0}" }
127139
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+
128146[[language]]
129147name = "c-sharp"
130148scope = "source.csharp"