debug problem(repost) [message #136318] |
Tue, 25 January 2005 10:38  |
Eclipse User |
|
|
|
Originally posted by: aero142.hotmail.com
I am having the following problem with running debug. I am using
Eclipse 3.01 and CDT 2.10. I have tried the debug command with cygwin
and minGW changing the path to each one when I try it. I can compile
link and run with no problem. I am compiling with the -g option and I
even saw a reference to -ggdb so I tried that. When I try to debug
under gdb debugger, I get an error pop up window that says
"Launching(Error: failed to set program arguments, environemt, or
working directory.)" Then in the console there is a message
"mi_cmd_env_cd: Usage DIRECTORY"
If I try cygwin gdb debug with cygwin I get a pop up "Execution was
suspended because of an error." And then in the console I get:
info threads
No registers.
Error creating process /cygdrive/c/Documents and Settings/Kevin/My
Documents/My Programs/CS378/Puzzler1/collatz.exe, (error 193)
info program
The program being debugged is not being run.
info threads
No registers.
info threads
No registers.
info threads
No registers.
Has anyone seen this. I have looked through the debugging tutorial and
do see any reference to setting a path that would affect this. Does
anyone have any ideas? I am new to Eclipse and would appreciate any help.
Thanks
sorry my earlier message was filed under a topic with the same name.
|
|
|
|
|
|
|
Re: debug problem(repost) [message #136502 is a reply to message #136439] |
Wed, 26 January 2005 09:15  |
Eclipse User |
|
|
|
Originally posted by: rwilkie.Nortel.com
Thanks vey much... That fixed the problem.
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:ct6mgi$n2k$1@www.eclipse.org...
> It seems that you are using Eclipse 3.1 M4 and CDT 2.1. These two versions
> are not compatible. The CDT 2.1 is intended to use with Eclipse 3.0.x.
>
> "Rich Wilkie" <rwilkie@Nortel.com> wrote in message
> news:ct6j88$bsq$1@www.eclipse.org...
>> alain wrote:
>>
>>> Kevin Martin wrote:
>>
>>>> I am having the following problem with running debug. I am using
>>>> Eclipse 3.01 and CDT 2.10. I have tried the debug command with cygwin
>>>> and minGW changing the path to each one when I try it. I can compile
>>>> link and run with no problem. I am compiling with the -g option and I
>>>> even saw a reference to -ggdb so I tried that. When I try to debug
>>>> under gdb debugger, I get an error pop up window that says
>>>> "Launching(Error: failed to set program arguments, environemt, or
>>>> working directory.)" Then in the console there is a message
>>>> "mi_cmd_env_cd: Usage DIRECTORY"
>>
>>> There is a bug in some gdb/mi implementation, if your executable
>>> in a path that contains ' '(space) it can get confuse.
>>> Make sure that your workspace/project is in a non-space fullpath 8-(
>>> something like:
>>> C:workspaceCS378
>>
>>>> If I try cygwin gdb debug with cygwin I get a pop up "Execution was
>>>> suspended because of an error." And then in the console I get:
>>
>>>> info threads
>>>> No registers.
>>>> Error creating process /cygdrive/c/Documents and Settings/Kevin/My
>>>> Documents/My Programs/CS378/Puzzler1/collatz.exe, (error 193)
>>
>>>> info program
>>>> The program being debugged is not being run.
>>>> info threads
>>>> No registers.
>>>> info threads
>>>> No registers.
>>>> info threads
>>>> No registers.
>>
>>> In this particular case, what I would be interested in is the debug
>>> trace
>>> between gdb and eclipse. Go to the CDT webpage and look at the FAQ
>>> it describes how to dump the gdb/MI commands in a console, this trace
>>> would help id the problem. But my first impression would be
>>> to move you project in a non-space path. GDB and other cygwin tools
>>> (like make) may have problems dealing with it.
>>
>> I am having a similar type of problem. I can run a simple "hello world"
>> styler program and can debug it from a simple xterm. But when I try to
>> debug from within Eclipse I get the message: "An internal error occurred
>> during:"Launching".
>>
>> My path has no spaces in it (/cygdrive/c/workspace/NewOne/Debug/). I'm
>> using cygwin.
>>
>> Any help would be GREATLY appreciated.
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.27483 seconds