Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » GDB (DSF) Manual Remote Launch - execute commands before launch?
GDB (DSF) Manual Remote Launch - execute commands before launch? [message #991675] Thu, 20 December 2012 00:39 Go to next message
Matt Wood is currently offline Matt Wood
Messages: 1
Registered: December 2012
Junior Member
Hi folks I've got a question about CDT and debugging with GDB. I've got cross toolchain C project that I need to debug on a remote target. I can successfully do this by setting up the debug configuration for C/C++ Remote Application using GDB (DSF) Manual Remote Debugging Launcher.

I've noticed that the option to add commands to execute before launching the debugger are not present when using the Manual launcher but only in the Automatic Launcher configuration.

My question is does anyone know a way to get these options back? My intention is to launch some host commands to setup certain things which would make life much easier instead of having to manually enter them on the command line every time before launching the debugger.

Thanks, Matt.
Re: GDB (DSF) Manual Remote Launch - execute commands before launch? [message #991938 is a reply to message #991675] Thu, 20 December 2012 14:07 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc Khouzam
Messages: 278
Registered: July 2009
Senior Member
The "GDB (DSF) Manual Remote Debugging Launcher" does not have such options. You are welcomed to write an enhancement bug to add this feature.

Until then, what you can do is write a small script for your target that will do the commands you want and start gdbserver. Since you are already starting gdbserver manually, it will be the same effort to start that script instead.

Marc
Re: GDB (DSF) Manual Remote Launch - execute commands before launch? [message #992081 is a reply to message #991675] Thu, 20 December 2012 20:36 Go to previous message
Chris Bruniges is currently offline Chris Bruniges
Messages: 7
Registered: April 2012
Location: Wellington, New Zealand
Junior Member
I've not used remote debug too much, but it sounds like you could use a launch group. These allow you to run sequential/parallel build/run configuration - such as "Run this external tool then launch debug profile X"

Using one of these, you could write your commands in a script as Marc suggests, configure an external tool to run your script, and then a group to launch your script, and then your debug session.

Hope that helps, happy Christmas!
Previous Topic:Debugger won't stop at breakpoints
Next Topic:Override external Makefile variable?
Goto Forum:
  


Current Time: Sat Sep 20 20:16:52 GMT 2014

Powered by FUDForum. Page generated in 0.11777 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software