quick switch between targets, possible?

there are three targets in my project, but really that is workaround:

the project is remote and NON-cmake based, so the configuration looks like:

1. first target in cmake is just for an indexing the sources and not really compiled

2. cmake custom target which just remotely run SCons build config

3. gdbserver configuration - that is for the debugging a build from point 2.

 

there is a combobox to switch between those, but shortcuts would be preferable.

so I can use Shift+Alt+F9 and quickly select what should be debugged (point3) 

but seems there is no similar selection for the build, is it correct? I can't select this otherwise than from the combobox ? 

 

and extra question about gdbserver debugging - there is great ability to run gdbserver as remote ssh tool before the running of gdb local. in other hand - there is an option in gdb configuration, which allows to run any tool before gdb. unfortuantelly looks like it runs synchronously, so if I set up remote gdbserver  command as a pre-command for local gdb it waits until gdbserver returns the control , can this be ran async? 

0

Hi!

>I can use Shift+Alt+F9 and quickly select what should be debugged

There is a similar shortcut for Run: Shift+Alt+F10. Unfortunately, there is no such shortcut for Build.

>so if I set up remote gdbserver  command as a pre-command for local gdb it waits until gdbserver returns the control

Could you please provide an example of the commands?

0

remote ssh command is a just running of gdbserver with a huge number of the parameters

local command is a bundled gdb with tcp connection address and port

 

I'm not an expert in gdb , probably I'm doing something wrong , but all application output goes into gdbserver session , not into local gdb toolwindow, is it okay?

0

Do you mean that use specify the command for launching your application on the remote target under gdbserver in the "Before launch" field of the "GDB Remote Debug" configuration? Instead of "Tools | Start SSH session", I mean.

0

请先登录再写评论。