Bug #18759 2012-10-17 19:39

zeroth

problems with breakpoints while program is not sopped

if a breakpoint is set while the program is running, the program will not stop on it, but the program will be unable to close and codeblocks will be unable to stop the program at all (no matter where the breakpoint is set)

video of this: http://bcaptain.net/debugger.mpeg (11mb)

in the video, I show the expected behavior (without setting breakpoints) and then I demonstrate the problem afterward.

I have only tested this in Linux.

Category
Debugger
Group
Platform:Linux
Status
Open
Close date
 
Assigned to
tpetrov
zeroth 2012-10-17 19:39

I am running SVN 8461

tpetrov 2012-11-10 13:24

Can you paste the full debugger log? (see in the settings how to enable it).

Also when this happens you can kill the gdb process, which is child of C::B, not the whole C::B.

Also do older revisions work correctly in this situation? In other words is this a regression or it has been broken forever?

zeroth 2013-12-21 06:32
Building to ensure sources are up-to-date
Selecting target: 
lin debug
Adding source dir: /home/caibbor/proj/btech3/codeblocks/
Adding source dir: /home/caibbor/proj/btech3/
Adding file: /home/caibbor/proj/btech3/run/btech3_debug
Changing directory to: /home/caibbor/proj/btech3/run/
Set variable: LD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /home/caibbor/proj/btech3/run/btech3_debug
[debug]Working dir : /home/caibbor/proj/btech3/run

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/caibbor/proj/btech3/run/btech3_debug
done

[debug]Reading symbols from /home/caibbor/proj/btech3/run/btech3_debug...
[debug]> set prompt >>>>>>cb_gdb:

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

[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.6.1-ubuntu
[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 "i686-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-ubuntu

[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/caibbor/proj/btech3/codeblocks/
[debug]Source directories searched: /home/caibbor/proj/btech3/codeblocks:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/caibbor/proj/btech3/
[debug]Source directories searched: /home/caibbor/proj/btech3:/home/caibbor/proj/btech3/codeblocks:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/caibbor/proj/btech3/run/btech3_debug 
[debug][Thread debugging using libthread_db enabled]
[debug]Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 0 gdb pid: 14907

Continuing...

[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 0 gdb pid: 14907

Continuing...

[debug]Quit

Child process PID: 14916

[debug][New Thread 0xb032ab40 (LWP 14916)]
[debug][Thread 0xb032ab40 (LWP 14916) exited]
[debug][New Thread 0xb032ab40 (LWP 14917)]
[debug]>>>>>>cb_gdb:
[debug]Child process (pid:14916) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 14916 gdb pid: 14907
[debug]Quit
[debug]>>>>>>cb_gdb:

Quit

[debug]Child process (pid:14916) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 14916 gdb pid: 14907
[debug]Quit
[debug]>>>>>>cb_gdb:
[debug]Child process (pid:14916) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 14916 gdb pid: 14907
[debug]Quit
[debug]>>>>>>cb_gdb:

Quit

[debug]Child process (pid:14916) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 14907; child pid: 14916 gdb pid: 14907
[debug]Quit
[debug]>>>>>>cb_gdb:
[debug]> info frame
[debug]No stack.
[debug]>>>>>>cb_gdb:

No stack.

[debug]> quit

Debugger finished with status 0
zeroth 2013-12-21 06:32
Building to ensure sources are up-to-date
Selecting target: 
lin debug
Adding source dir: /home/caibbor/proj/btech3/codeblocks/
Adding source dir: /home/caibbor/proj/btech3/
Adding file: /home/caibbor/proj/btech3/run/btech3_debug
Changing directory to: /home/caibbor/proj/btech3/run/
Set variable: LD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /home/caibbor/proj/btech3/run/btech3_debug
[debug]Working dir : /home/caibbor/proj/btech3/run

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/caibbor/proj/btech3/run/btech3_debug
done

[debug]Reading symbols from /home/caibbor/proj/btech3/run/btech3_debug...
[debug]> set prompt >>>>>>cb_gdb:

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

[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.6.1-ubuntu
[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 "i686-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-ubuntu

[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/caibbor/proj/btech3/codeblocks/
[debug]Source directories searched: /home/caibbor/proj/btech3/codeblocks:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> directory /home/caibbor/proj/btech3/
[debug]Source directories searched: /home/caibbor/proj/btech3:/home/caibbor/proj/btech3/codeblocks:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/caibbor/proj/btech3/run/btech3_debug 
[debug][Thread debugging using libthread_db enabled]
[debug]Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[debug]Code::Blocks is trying to interrupt process with pid: 13698; child pid: 0 gdb pid: 13698

Continuing...

[debug]Quit

Child process PID: 13706

[debug][New Thread 0xb032ab40 (LWP 13706)]
[debug][Thread 0xb032ab40 (LWP 13706) exited]
[debug][New Thread 0xb032ab40 (LWP 13707)]
[debug]>>>>>>cb_gdb:
[debug]Child process (pid:13706) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 13698; child pid: 13706 gdb pid: 13698
[debug]Quit
[debug]>>>>>>cb_gdb:

Quit

[debug]Child process (pid:13706) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 13698; child pid: 13706 gdb pid: 13698
[debug]Quit
[debug]>>>>>>cb_gdb:
[debug]Child process (pid:13706) doesn't exists
[debug]Code::Blocks is trying to interrupt process with pid: 13698; child pid: 13706 gdb pid: 13698
[debug]Quit
[debug]>>>>>>cb_gdb:
zeroth 2013-12-21 06:34

Codeblocks version for the previous two comments is (on Linux) SVN 9492 from Jens' repository.

zeroth 2013-12-21 06:38

I just tried pausing the debugger in a freshly created Console C++ project with the same codeblocks on the same machine, and it worked just fine, so there is a problem with my specific project. Still very interested in getting this feature to work. It has been broken forever.