Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ViejoCatu on May 08, 2008, 03:38:49 am
-
Hi,
I'm trying to debug a protect in code::blocks, but the breakpoints doesn't seem to work, the program doesn't stop its execution.
here's the log:
*******************************************
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\My Documents\PC02\LAB 04\Lab04(Animales)\
Adding source dir: D:\My Documents\PC02\LAB 04\Lab04(Animales)\
Adding file: bin\Debug\Lab04(Animales).exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.7.50.20071127
Function "D:/My Documents/PC02/LAB 04/Lab04(Animales)" not defined.
Breakpoint 1 ("D:/My Documents/PC02/LAB 04/Lab04(Animales)/Probador.c:31) pending.
Child process PID: 400
Program exited normally.
Debugger finished with status 0
********************************************
As you can see, it says "breakpoint 1 ... pending".
the project is compiled with the -g (debugging symbols) and compiler optimization switches turned off.
Can anyone help me out?
Thx.
-
Avoid putting your projects in paths with special characters like ().
-
Hi,
I have also seen than, sometimes, last gdb versions works better when your project has no blank characters inside path name. For example, in your case, you have 2 blanks characters, in "My Documents" and in "LAB 04". When this happen for me, I copy the whole project in a temporary folder, directly at the disk root (D:\tempLab04 for example) and it works ! :)
gd_on
-
Thank you so much :D