Author Topic: no stop on breakpoints  (Read 6904 times)

Offline alexo

  • Multiple posting newcomer
  • *
  • Posts: 21
no stop on breakpoints
« on: May 25, 2013, 04:06:09 pm »
hello guys,

I can't stop the execution on breakpoints when C::B runs debugger.
Here is the output of the debugging log:

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/alessandro/ProgC/Test only/
Adding source dir: /home/alessandro/ProgC/Test only/
Adding file: /home/alessandro/ProgC/Test only/bin/Debug/Test only
Changing directory to: "/home/alessandro/ProgC/Test only/."
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args "/home/alessandro/ProgC/Test only/bin/Debug/Test only"
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4.1-debian
Error in re-setting breakpoint 2: Function "/home/alessandro/ProgC/Test only/main.cpp:55" not defined.
[Inferior 1 (process 3864) exited normally]
Debugger finished with status 0

as I read on a related post the -s option is off, but still no stopping results.
any suggestion?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: no stop on breakpoints
« Reply #1 on: May 25, 2013, 08:19:33 pm »
can you post some code?

PS. try to non use spaces in your file or folder structure . Spaces in paths are always bad ;)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: no stop on breakpoints
« Reply #2 on: May 25, 2013, 09:11:35 pm »
As first give the necessary information, especially OS (and version) and version of C::B and compiler.

And the full commandline, please.

Offline alexo

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: no stop on breakpoints
« Reply #3 on: May 26, 2013, 10:11:24 am »
The command line is like this:

g++ -Wall -fexceptions  -g     -c "/home/alessandro/ProgC/jagged array/main.cpp" -o obj/Debug/main.o
g++  -o "bin/Debug/jagged array" obj/Debug/main.o

version of Code::Blocks:
12.11.1
build:
Nov 30 2012

compiler gcc version number:
4.7.3

debugger: gdb
7.4.1

OS:
Debian Linux 7.0 [Wheezy] 32 Bit



Offline alexo

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: no stop on breakpoints
« Reply #4 on: May 26, 2013, 10:16:29 am »
can you post some code?

PS. try to non use spaces in your file or folder structure . Spaces in paths are always bad ;)

In Code::Blocks 10.05 spaces have never been a problem.
Nor it seems they  are in 12.11