Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugger config -- CDT/gdb error(debugger error)
Debugger config -- CDT/gdb error [message #783496] Wed, 25 January 2012 15:39 Go to next message
Eclipse UserFriend
The program executes when I "run" the program, however, I am unable to debug the project. "/bin/bash: /home/brockmo/localWorkeclipseWork/Lottery/Default/Lottery: No such file or directory" ***note that [localWorkeclipseWork] is really a folder "eclipseWork" inside of the "localWork" folder.

Has anyone overcome this error?
Re: Debugger config -- CDT/gdb error [message #783698 is a reply to message #783496] Thu, 26 January 2012 03:49 Go to previous message
Eclipse UserFriend
On 1/25/2012 9:39 PM, brock peterson wrote:
> The program executes when I "run" the program, however, I am unable to
> debug the project. "/bin/bash:
> /home/brockmo/localWorkeclipseWork/Lottery/Default/Lottery: No such file
> or directory" ***note that [localWorkeclipseWork] is really a folder
> "eclipseWork" inside of the "localWork" folder.
>
> Has anyone overcome this error?

The correct pathname is not used (and therefore the file not found)
because something (e.g. Eclipse, or bash, or whatever you use)
"swallows" the directory delimiter between localWork and eclipseWork.

If you got your project from someone using Windows, you likely have
"localWork\eclipseWork" somewhere buried in your project settings.

This works on Windows, and may work internally for Eclipse, but will not
on the Unix command line (and we _are_ talking about the Unix command
line as soon as 'bash' is invoked).

Find this setting and replace it with "localWork/eclipseWork".

If it has to be kept Windows(tm) compatible, try to use at least
"localWork\\eclipseWork".

Background: On Unix, a lot of normal text processing functions regard
'\' as a "quote" character so you can enter special characters as '\n'
for CR or '\t' for TAB.
As a side effect, a single backslash becomes '\\'.
Previous Topic:Unable to install CDT : Invalid content:cdt_win32.jar
Next Topic:Debugging *.S assembly sources
Goto Forum:
  


Current Time: Tue Jul 01 14:08:52 EDT 2025

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

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

Back to the top