Code::Blocks
July 29, 2010, 05:48:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New release 10.05 is ready. Grab it while it's hot!!!
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]
  Send this topic  |  Print  
Author Topic: Cygwin and Unix Style Paths  (Read 431 times)
thefurlong
Newcomer
*
Posts: 2


« on: March 18, 2010, 05:54:18 pm »

Hello, I am trying to use Cygwin's version of the gdb debugger.  However, whenever I set breakpoints, I get the message Cannot open file
C:\FOO\\cygdrive\c\FOO\main.cpp, where FOO is the name of the directory where my source files are located.  When I manually use gdb in the Bash shell, as long as I use the path /cygdrive/c/FOO/, it works correctly.  From my glib understanding of how Code Blocks uses gdb, it seems to me that gdb is actually able to locate the executable, but Code Blocks is then unable to convert the Unix style path that it returns into the corresponding DOS path.  Is there any workaround for this?

Also, I would respectfully ask you not to suggest that I take a look at the Code Blocks source.  I am a professional developer, and have already wasted enough time trying to get Cygwin to work with Code Blocks in the first place.  Any other advice is welcome.  Thank you.
Logged
MortenMacFly
Administrator
Lives here!
*****
Posts: 4593



WWW
« Reply #1 on: March 18, 2010, 06:05:47 pm »

Any other advice is welcome.  Thank you.
Well... you should at least tell what version of C::B/Cygwin/GDB you are using. You may want to try a nightly in case you are using C::B 08/02. There has been a lot development in this area since the 08/02 days...
Logged

Logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
Compiling help
Debugging help
Portable C::B
thefurlong
Newcomer
*
Posts: 2


« Reply #2 on: March 18, 2010, 06:23:03 pm »

Thank you for your response.  Sorry about that.  I am using C::B version 8.02, Cygwin version 1.7.1-1, and gdb version 6.8-2.
Logged
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!