User forums > Using Code::Blocks

Debugger doesn't run on SAMBA share

<< < (2/3) > >>

BlueHazzard:
can you post a debug log, where you try to hit a breakpoint?

Leyland:
Here you go:

--- 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.5,share=public/CodeBlocksProjects/debugTest/
Adding source dir: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
Adding file: /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
Changing directory to: /run/user/1000/gvfs/smb-share:server=192.168.1.5,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.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug]Working dir : /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest

Starting debugger: /bin/gdb -nx -fullname -quiet  -args /run/user/1000/gvfs/smb-share:server=192.168.1.5,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.5,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]Using terminal's PID as console PID 2692, TTY /dev/pts/1
[debug]Queued:[tty /dev/pts/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 /run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/
[debug]Source directories searched: /run/user/1000/gvfs/smb-share:/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/server=192.168.1.5,share=public/CodeBlocksProjects/debugTest:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/main.c:6"
[debug]No source file named /run/user/1000/gvfs/smb-share.
[debug]Breakpoint 2 ("/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=public/CodeBlocksProjects/debugTest/main.c:6") pending.
[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.5,share=public/CodeBlocksProjects/debugTest/bin/Debug/debugTest
[debug][Inferior 1 (process 2694) 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 2694) exited normally]

[debug]> quit

Debugger finished with status 0

--- End code ---

oBFusCATed:
And can you show the log from command line debugger where the breakpoints really work?
But please use fuller paths for the break commands.

In general I'm really surprised you're able to get this far when using paths like this one

--- Code: ---/run/user/1000/gvfs/smb-share:server=192.168.1.5,share=
--- End code ---

There are so many special characters, which might confuse programs in some many different ways.

Leyland:

--- Quote ---And can you show the log from command line debugger where the breakpoints really work?
But please use fuller paths for the break commands
--- End quote ---

I'm not sure how to do that. I just Googled it but didn't see anything helpful


--- Quote ---In general I'm really surprised you're able to get this far when using paths like this one
--- End quote ---

The path is provided to Code:Blocks by the Linux Mint desktop.

I suspect that you are correct and the debugger doesn't like some of the characters in the path. I don't want to introduce possible additional bugs into my code by using a suspect path so I'll move the projects on to the local file system

Thanks for all your help.

Regards,

oBFusCATed:

--- Quote from: Leyland on November 04, 2017, 01:14:19 am ---I'm not sure how to do that. I just Googled it but didn't see anything helpful

--- End quote ---
All the commands are available in the log you're posting so you need to just execute them in the terminal.

Generally it is better to share projects with vcs like (git, svn, hg, etc) and not using file sharing software.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version