User forums > Help

Breakpoint Being Ignored <with full debugger log>

(1/7) > >>

dcbdbis:
ArchLinux x86_64, 32Gb RAM
C::B 12.11
wxWidgets 2.8.12

In my project build options options, -g is checked, -s is unchecked.

I have also checked the setting under the "Settings->Compiler" to make sure -s is not checked and -g is.

No optimizations at all are checked in any location. I have also removed the "-" from the project directory name, and restarted C::B, rebuild all, with no changes in behaviour.

I am sure it's something entirely stupid....but I have only recently moved to C::B from an Embarcadero product so I am not that familiar with it (yet).

The program operates fine. But as I add logic under the hood...I am going to need the debugger working......

With respect, I've read and followed the wiki's that others with similar problems and were pointed to. My config and settings appear to be correct.


Help will be greatly appreciated.


Sincerely and respectfully,

Dave
//--------------------------------

Here is the full output of the debugger:


--- Code: ---Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/
Adding source dir: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/
Adding file: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/bin/Debug/BicycleGearingCalculator
Changing directory to: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/.
Set variable: LD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/bin/Debug/BicycleGearingCalculator
[debug]Working dir : /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/bin/Debug/BicycleGearingCalculator
done

[debug]Reading symbols from /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/bin/Debug/BicycleGearingCalculator...
[debug]done.
[debug](gdb)
[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]>>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.6.1
[debug]Copyright (C) 2013 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-unknown-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.6.1

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/
[debug]Source directories searched: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "/home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp:340"
[debug]Breakpoint 2 at 0x41404f: file /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp, line 340.
[debug]>>>>>>cb_gdb:
[debug]> break "/home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp:338"
[debug]Note: breakpoint 2 also set at pc 0x41404f.
[debug]Breakpoint 3 at 0x41404f: file /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp, line 338.
[debug]>>>>>>cb_gdb:
[debug]> break "/home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp:341"
[debug]Breakpoint 4 at 0x414060: file /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/BicycleGearingCalculatorMain.cpp, line 341.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/dcbdbis/RamDisk/workspace/CodeBlocks-Projects/BicycleGearingCalculator/bin/Debug/BicycleGearingCalculator
[debug](BicycleGearingCalculator:2494): Gtk-WARNING **: Error parsing gtk-icon-sizes string:
[debug] 'panel-menu=24,24
[debug]panel=20,20
[debug]gtk-button=18,18
[debug]gtk-large-toolbar=24,24'
[debug]During startup program exited normally.
[debug]>>>>>>cb_gdb:

During startup program exited normally.

[debug]> quit

Debugger finished with status 0

--- End code ---

oBFusCATed:

--- Quote from: dcbdbis on December 13, 2013, 02:01:44 am ---
--- Code: ---[debug]During startup program exited normally.

--- End code ---

--- End quote ---
Blehhh...
Can you try something to verify you have the same problem as I have:
1. make a tool that start bash ( name: bash, executable: xterm, parameters: -e bash, working directory: ${TARGET_OUTPUT_DIR}, launch options: the last one)
2. when you get this problem Tools -> Bash
3. execute gdb path_to_your_exe
4. set a break point
5. run

After you've verified that manually started gdb prints the same error, restart C::B and try to debug from codeblocks.
If it still doesn't work, keep restarting, till it works.

oBFusCATed:
What glibc are you using?

dcbdbis:
glibc = 2.18.

Thanks!


Dave...

dcbdbis:
Dear oBFusCATed,

I can manually debug the program and it breaks properly when I open a terminal, and run gdb from the CLI. Then I specify "gdb sourcefilename:linenum". It works peechee, so my system's setup appears to be OK.


Thanks for your help,


Dave

Navigation

[0] Message Index

[#] Next page

Go to full version