User forums > General (but related to Code::Blocks)

C::B / CYGWIN / gdb / No stop at breakpoints

(1/2) > >>

Léa Massiot:
Hello and thank you for reading my post.

Here is my problem.
- My OS is "Win7".
- I'm using "C::B 10.05".
- I have "CYGWIN" installed on my computer.
- I chose to use the CYGWIN's compiler, linker and debbuger along with "C::B".
- I created a basic "Hello World" "Console Application" and toggled a breakpoint:
so normally, I would expect the program to stop before printing "Hello World" on the console
and after I hit "F7", it would print it etc.
No such a thing happens.

I can properly build and run my program but I can't debug it: it doesn't stop at breakpoints.

In the "Debbuger" tab, I get such messages as:
(My "C::B" workspace directory is D:\some\directory\in\my\filesystem\cbproject\)

--- Code: ---Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5.50.20120815-cvs (cygwin-special)
Warning: /cygdrive/d/some/directory/in/my/filesystem/cbproject/D: No such file or directory.

At /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:77
Cannot open file: D:\some\directory\in\my\filesystem\cbproject\->->\cygdrive\d\some\directory\in\my\filesystem\cbproject\main.cpp
--- End code ---

How can I fix this problem?
It looks like a path isn't set properly...

Thank you for helping.
Best regards.

Léa Massiot:
This thread http://forums.codeblocks.org/index.php/topic,12212.0.html doesn't solve the problem for me, unfortunately.

Léa Massiot:
In my system ("Win7"), the "cygpath.exe" command default setting is to print "Unix form of NAMEs (/cygdrive/c/winnt)"
instead of "Windows form of NAMEs (C:\WINNT)"...
... so maybe the problem comes from here.
For example:

--- Code: ---dos shell> cygpath C:\Users\lea
/cygdrive/c/Users/lea

dos shell> cygpath -w C:\Users\lea
C:\Users\lea
--- End code ---

BR.

Léa Massiot:
I followed these instructions step by step:
http://wiki.codeblocks.org/index.php?title=Installing_Cygwin_Compiler
it doesn't work either.

BR.

Léa Massiot:
I there anything I could do in

"Settings"
-> "Compiler and debugger..."
-> "Debbuger settings"
-> "Debugger initialization commands"

?

Navigation

[0] Message Index

[#] Next page

Go to full version