Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Launch eclipse session without executable
Launch eclipse session without executable [message #1233697] Mon, 20 January 2014 04:50 Go to next message
Shiva Sharma is currently offline Shiva Sharma
Messages: 3
Registered: December 2013
Junior Member
Hi Team,

Is it possible to launch an Eclipse-gdb Debug session without the executable file in Debug Configuration ?

Thanks &
Regards, Shiva.
Re: Launch eclipse session without executable [message #1234109 is a reply to message #1233697] Tue, 21 January 2014 03:55 Go to previous message
Marc Khouzam is currently offline Marc Khouzam
Messages: 262
Registered: July 2009
Senior Member
Project-less debugging is supported:
http://wiki.eclipse.org/CDT/User/FAQ#Can_I_debug_a_process_that_I_didn.27t_develop_in_Eclipse.3F

But "binary-less" debugging is not really supported except for the attach case. With "C/C++ attach to application" you don't have to specify a binary, you just choose one to attach to when you get prompted.
Another option is to launch any non-stop debug session with some binary, and then start a new binary using the context menu "Debug New Executable". That new binary does not have to be part of the launch config.
If you don't want to start a useless first binary, you could achieve this by using a C/C++ Attach to Application but use gdbserver (option in the Debugger tab of the launch config). In that case you don't
need any binary in the launch config, and you are not forced to attach to a process when you launch; so, after the launch, you can "Debug New Executable" and start any binary. The disadvantage of that is
that you use a 'remote' type of launch which does not realize it can use the local file system. If you want to do that, just start gdbserver on localhost.
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_debug_a_remote_application.3F (look at "remote attach launcher").

Marc
Previous Topic:A problem with Remote Debugging
Next Topic:Can't get Global Breakpoint to work in Kepler - Hello World
Goto Forum:
  


Current Time: Thu Apr 24 14:50:58 EDT 2014

Powered by FUDForum. Page generated in 0.02131 seconds