News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

GDB (cygwin-special) Warning: /cygdrive/... No such file or directory

Started by DynV, January 26, 2012, 09:23:43 AM

Previous topic - Next topic

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

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!]

DynV

Quote from: oBFusCATed on January 28, 2012, 11:00:19 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

oBFusCATed

Quote from: DynV on January 28, 2012, 11:56:26 PM
NO MORE EXCUSES! ;D
I have one really strong excuse:

$ 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!]

MortenMacFly

Quote from: oBFusCATed on January 28, 2012, 11:00:19 PM
Link?
I see only the patch for the compiler in there.
Ooops - you are right. Forget about this.

Quote from: oBFusCATed on January 28, 2012, 11:00:19 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

littlegene

Will make a donation. I think some of us (cygwiners) could donate as well.

MortenMacFly

Quote from: MortenMacFly on January 29, 2012, 07:35:53 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

(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!]

littlegene

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.

MortenMacFly

Quote from: littlegene on February 01, 2012, 02:13:01 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

littlegene

Yes, I know )
And 'Warning: /cygdrive/c/.../C: No such file or directory.'
still present. Yet one kind of trouble.