Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error creating session
Error creating session [message #165961] Thu, 16 March 2006 18:14 Go to next message
Eclipse UserFriend
Originally posted by: locluu.hotmail.com

My hello world c program build and run. But when I invoked the debugger, I
got this error:
Error creating session: Exec error: Launching failed.

Use eclipse 3.1.2, CDT 3.0.2

Thanks for your help.

Loc
Re: Error creating session [message #165985 is a reply to message #165961] Fri, 17 March 2006 06:45 Go to previous messageGo to next message
Norbert Plött is currently offline Norbert PlöttFriend
Messages: 233
Registered: July 2009
Senior Member
Hi Loc,

looks like gdb (or whatever external debugger you are using) is not on your
PATH. If you are working on Windows the external debugger must be start-able
from a Windows (!) command prompt.

Helpful?



Norbert
Re: Error creating session [message #165999 is a reply to message #165985] Fri, 17 March 2006 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: locluu.hotmail.com

I use the cygwin tool chain (gcc, gdb, make, gnu linker, etc...) To
reiterate the program built and ran. I did added the c:\cygwin\bin to the
path variable. I am puzzling why Eclipse cannot find gdb. It found gcc,
make, linker, etc...

Loc
Re: Error creating session [message #166007 is a reply to message #165999] Fri, 17 March 2006 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mitchell.fang.gmail.com

Why don't you just tell Eclipse to use your cygwin debugger? In the
Run->Debug.. local application configuration you can set Eclipse to use
what debugger you want to use.

Mitchell

Loc wrote:
>
> I use the cygwin tool chain (gcc, gdb, make, gnu linker, etc...) To
> reiterate the program built and ran. I did added the c:\cygwin\bin to
> the path variable. I am puzzling why Eclipse cannot find gdb. It found
> gcc, make, linker, etc...
>
> Loc
>
>
Re: Error creating session [message #166014 is a reply to message #166007] Fri, 17 March 2006 17:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: locluu.hotmail.com

I did just that. Under run-> debug -> debugger I tell eclipse to use
cygwin gdb debugger. Actually, it does not make a difference. I tried
both cygwin gdb and gdb debugger, same result (Launching failed). But if
I specify the absolute path in debugger options->main (ie.
c:\cygwin\bin\gdb) the debugger got launched but I got different kind of
error this time:

Warning: /Documents and Settings/loc/workspace/firstProj/.settings;C: No
such file or directory.
Warning: /Documents and Settings/loc/workspace/firstProj;C: No such file
or directory.
Warning: /cygdrive/c/Documents and Settings/lluu/workspace/firstProj/C: No
such file or directory.
You can't do that without a process to debug.

Any idea?
Re: Error creating session [message #166022 is a reply to message #166014] Fri, 17 March 2006 17:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: locluu.hotmail.com

Sorry, when I copied one line was missing:

mi_cmd_stack_list_frames: No stack.
Warning: /Documents and Settings/lluu/workspace/firstProj/.settings;C: No
such file or directory.
Warning: /Documents and Settings/lluu/workspace/firstProj;C: No such file
or directory.
Warning: /cygdrive/c/Documents and Settings/lluu/workspace/firstProj/C: No
such file or directory.
You can't do that without a process to debug.

thanks again.

Loc
Re: Error creating session [message #167191 is a reply to message #166022] Sat, 01 April 2006 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tony_nbu.hotmail.com

Hi Everybody,

I'v just got exactly the same error message when debuging with Cygwin gdb
in Eclipse 3.1.2(WinXP). It works pretty good when launching gcc, g++,
make. I have no idea what's wrong when using gdb. I tried using gdb in
WinXP command prompt to debug a process, and it also work pretty good.

The Cygwin\bin path also has been set in both project properties and
run/debug configuration. I am sure that Eclipse can find gdb
absolutely,Could that be the version problem of Gdb? (GDB
6.3.50_2004-12-28)-cvs

SOS!!!
Re: Error creating session [message #167263 is a reply to message #166014] Tue, 04 April 2006 05:47 Go to previous message
Norbert Plött is currently offline Norbert PlöttFriend
Messages: 233
Registered: July 2009
Senior Member
Loc,

it seems that the path to your project sources has spaces in it ("Documents
and Settings"). Doesn't work with gdb. Move your project to a place where
the path does not have spaces.

Cheers,


Norbert Ploett
Previous Topic:CDT CVS integration with managed makefiles
Next Topic:Folder Includes in Managed Make Projects
Goto Forum:
  


Current Time: Fri Apr 26 04:56:16 GMT 2024

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

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

Back to the top