News:

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

Main Menu

Breakpoints not working

Started by ViejoCatu, May 08, 2008, 03:38:49 AM

Previous topic - Next topic

ViejoCatu

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.

mandrav

Avoid putting your projects in paths with special characters like ().
Be patient!
This bug will be fixed soon...

gd_on

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

ViejoCatu