User forums > Using Code::Blocks
Debugger doesn't run on SAMBA share
Leyland:
Hi All,
I've searched the forum to see if anyone else has experienced this issue but have not found any posts so far.
Here's the problem:
When my project is saved on a SAMBA share the debugger won't work. The debugger runs but won't stop at the cursor nor any breakpoints. It simply run to the end and reports that it completed successfully. If the project is saved on the local file system, the debugger works as expected.
There are no spaces in the SAMBA share path nor in the project file names. The project runs and compiles perfectly but it just won't debug. Has anyone else experienced this issue. Should it be reported as a bug?
Here's my environment:
Centos 7
Code::Blocks 16.01
gdb
BlueHazzard:
Does it work with only gdb on command line?
Leyland:
Yes it does
oBFusCATed:
Can you show us the full debugger's log?
You should enable it in the settings of the debugger.
Leyland:
Here's the debugger log when project is saved on share (when debugger doesn't work):
--- Code: ---Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
Adding file: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
Changing directory to: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/.
Set variable: LD_LIBRARY_PATH=.:
[debug]Command-line: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug]Working dir : /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest
Starting debugger: /bin/gdb -nx -fullname -quiet -args /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
[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-redhat-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) Red Hat Enterprise Linux 7.6.1-80.el7
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]Using terminal's PID as console PID 29034, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/1]
[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 /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/
[debug]Source directories searched: /run/user/1000/gvfs/smb-share:/run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/server=192.168.1.1,share=public/CodeBlocksProjects/debugTest:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /run/user/1000/gvfs/smb-share:server=192.168.1.1,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug][Inferior 1 (process 29036) exited normally]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.8.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 29036) exited normally]
[debug]> quit
Debugger finished with status 0
--- End code ---
Here's the log when project is saved locally (when debugger works):
--- Code: ---Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/cb_projects/TestBreakpoint2/
Adding source dir: /home/cb_projects/TestBreakpoint2/
Adding file: /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
Changing directory to: /home/cb_projects/TestBreakpoint2/.
Set variable: LD_LIBRARY_PATH=.:
[debug]Command-line: /bin/gdb -nx -fullname -quiet -args /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
[debug]Working dir : /home/cb_projects/TestBreakpoint2
Starting debugger: /bin/gdb -nx -fullname -quiet -args /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
done
[debug]Reading symbols from /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2...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) Red Hat Enterprise Linux 7.6.1-80.el7
[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-redhat-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) Red Hat Enterprise Linux 7.6.1-80.el7
[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]Using terminal's PID as console PID 29650, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/1]
[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/cb_projects/TestBreakpoint2/
[debug]Source directories searched: /home/cb_projects/TestBreakpoint2:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/cb_projects/TestBreakpoint2/bin/Debug/TestBreakpoint2
[debug][Inferior 1 (process 29652) exited normally]
[debug]Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.8.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 29652) exited normally]
[debug]> quit
Debugger finished with status 0
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version