Author Topic: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory  (Read 27663 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #15 on: January 28, 2012, 10:53:47 pm »
Here is the patch: http://forums.codeblocks.org/index.php/topic,15136.msg106378.html#msg106378
If it works, I'm OK to commit it.
Notice that there is a way newer version in the patch tracker. Please do not apply this one.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #16 on: January 28, 2012, 11:00:19 pm »
Morten:
Link?
I see only the patch for the compiler in there.
Also the patch is definitely incomplete.
Because every place a path is sent to GDB should be made to understand cygwin paths.

Maybe I've to spend some time installing cygwin.
Do you know easy step by step instructions to get me going?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline DynV

  • Multiple posting newcomer
  • *
  • Posts: 10
    • DynV homepage
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #17 on: January 28, 2012, 11:56:26 pm »
Do you know easy step by step instructions to get me going?

Installing gcc with Cygwin

Installing CYGWIN with gcc compiler

The video is in reality 1:38 because you will want to skip from 1:20 to 3:20, slicing off 2 minutes.

NO MORE EXCUSES! ;D
« Last Edit: January 29, 2012, 12:04:16 am by DynV »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #18 on: January 29, 2012, 12:05:28 am »
NO MORE EXCUSES! ;D
I have one really strong excuse:
Code
$ uptime 
 01:04:23 up 31 days,  5:40,  3 users,  load average: 0,86, 0,74, 0,62
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #19 on: January 29, 2012, 07:35:53 am »
Link?
I see only the patch for the compiler in there.
Ooops - you are right. Forget about this.

Also the patch is definitely incomplete.
Because every place a path is sent to GDB should be made to understand cygwin paths.
That is definitely true, for the debugger this applies, but also for the editor for example (jump to functions etc...) and also for CC. :-( The /cygdrive stuff will always be there, so a new SDK function to convert Cygwin->OS and OS->Cygwin is needed. Something like "UnixFile".
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #20 on: January 30, 2012, 07:35:01 am »
Will make a donation. I think some of us (cygwiners) could donate as well.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #21 on: January 30, 2012, 07:42:26 am »
Something like "UnixFile".
...or how about an "alias" file name for each ProjectFile? Thus, ProjectFile gets extended and the alias is computed always and used just as needed?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #22 on: January 30, 2012, 09:09:46 am »
Alias sound ok to me.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #23 on: February 01, 2012, 02:13:01 pm »
Yes, it would be nice to introduce some feature for 'cygdrive' word context and get rid of it in resulting Windows files names where 'cygdrive' appear. In order to vitalize source code stepping in debug. I checked it just changing cbDebuggerPlugin::SyncEditor routine and everything's fine now at me. Al least Win7+Cygwin1.7+gdb7.3+g++-4 succeeds.
But, looking forward to get official backward compatibility and cross-platform changes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #24 on: February 01, 2012, 02:41:54 pm »
resulting Windows files names where 'cygdrive' appear.
You know, that it's not as easy as that, because IMHO this prefix can be changed, so it is not a "constant" replace.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: GDB (cygwin-special) Warning: /cygdrive/... No such file or directory
« Reply #25 on: February 01, 2012, 03:20:35 pm »
Yes, I know )
And 'Warning: /cygdrive/c/.../C: No such file or directory.'
still present. Yet one kind of trouble.