Error creating session [message #165961] |
Thu, 16 March 2006 18:14 |
Eclipse User |
|
|
|
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 #165999 is a reply to message #165985] |
Fri, 17 March 2006 14:56 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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!!!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03402 seconds