Skip to main content



      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] Wed, 19 December 2012 19:39 Go to next message
Eclipse UserFriend
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 09:07 Go to previous messageGo to next message
Eclipse UserFriend
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 15:36 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 09:32:40 EDT 2025

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

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

Back to the top