Thank you very much for helping me!!!
with this command the program was running with gdb on terminal:
sudo gdb ./Debug/program
Debugger Output Log:
Code: Select all
Using gdbinit file: /tmp/codelite_gdbinit.txt
Current working dir: /home/pi/myprod/cpptest/p12-servo
Launching gdb from : /home/pi/myprod/cpptest/p12-servo/Debug
Starting debugger : gdb --command="/tmp/codelite_gdbinit.txt" --tty=/dev/pts/1 --interpreter=mi "sudo ./p12-servo-test"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set print object on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>python
DEBUG>>import sys
DEBUG>>sys.path.insert(0, '/home/pi/.codelite/gdb_printers')
DEBUG>>from libstdcxx.v6.printers import register_libstdcxx_printers
DEBUG>>register_libstdcxx_printers (None)
DEBUG>>from qt4 import register_qt4_printers
DEBUG>>register_qt4_printers (None)
DEBUG>>from wx import register_wx_printers
DEBUG>>register_wx_printers (None)
DEBUG>>end
DEBUG>>00000070-break-insert -f "/home/pi/myprod/cpptest/hello/hello.cpp:6"
DEBUG>>00000071-break-insert -f "/home/pi/myprod/cpptest/p12-servo/servo-test.cpp:26"
DEBUG>>00000072-break-insert -f "/home/pi/myprod/cpptest/test/main.cpp:10"
DEBUG>>00000073-enable-pretty-printing
Debug session started successfully!
DEBUG>>00000074-exec-arguments sudo
DEBUG>>00000075-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git\n"
GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git
DEBUG>>~"Copyright (C) 2016 Free Software Foundation, Inc.\n"
Copyright (C) 2016 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.
DEBUG>>~"This GDB was configured as \"arm-linux-gnueabihf\".\nType \"show configuration\" for configuration details."
This GDB was configured as "arm-linux-gnueabihf".\nType "show configuration" for configuration details.
DEBUG>>~"\nFor bug reporting instructions, please see:\n"
\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
<http://www.gnu.org/software/gdb/bugs/>.
DEBUG>>~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.
DEBUG>>~"For help, type \"help\".\n"
For help, type "help".
DEBUG>>~"Type \"apropos word\" to search for commands related to \"word\"...\n"
Type "apropos word" to search for commands related to "word"...
DEBUG>>&"sudo ./p12-servo-test: Datei oder Verzeichnis nicht gefunden.\n"
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>=cmd-param-changed,param="unwindonsignal",value="on"
=cmd-param-changed,param="unwindonsignal",value="on"
DEBUG>>^done
DEBUG>>&"set breakpoint pending on\n"
DEBUG>>=cmd-param-changed,param="breakpoint pending",value="on"
=cmd-param-changed,param="breakpoint pending",value="on"
DEBUG>>^done
DEBUG>>&"set print object on\n"
DEBUG>>=cmd-param-changed,param="print object",value="on"
=cmd-param-changed,param="print object",value="on"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>=cmd-param-changed,param="width",value="4294967295"
=cmd-param-changed,param="width",value="4294967295"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>=cmd-param-changed,param="height",value="4294967295"
=cmd-param-changed,param="height",value="4294967295"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>&"python\n"
DEBUG>>&"Traceback (most recent call last):\n"
DEBUG>>&" File \"<string>\", line 4, in <module>\n"
DEBUG>>&" File \"/home/pi/.codelite/gdb_printers/libstdcxx/v6/printers.py\", line 1023, in register_libstdcxx_printers\n"
DEBUG>>&" gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&" File \"/usr/share/gdb/python/gdb/printing.py\", line 152, in register_pretty_printer\n"
DEBUG>>&" printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"Error while executing Python code.\n"
DEBUG>>^error,msg="Error while executing Python code."
^error,msg="Error while executing Python code."
DEBUG>>&"No symbol table is loaded. Use the \"file\" command.\n"
DEBUG>>00000070^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/pi/myprod/cpptest/hello/hello.cpp:6",times="0",original-location="/home/pi/myprod/cpptest/hello/hello.cpp:6"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/pi/myprod/cpptest/hello/hello.cpp:6
DEBUG>>&"No symbol table is loaded. Use the \"file\" command.\n"
DEBUG>>00000071^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/pi/myprod/cpptest/p12-servo/servo-test.cpp:26",times="0",original-location="/home/pi/myprod/cpptest/p12-servo/servo-test.cpp:26"}
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: /home/pi/myprod/cpptest/p12-servo/servo-test.cpp:26
DEBUG>>&"No symbol table is loaded. Use the \"file\" command.\n"
DEBUG>>00000072^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/pi/myprod/cpptest/test/main.cpp:10",times="0",original-location="/home/pi/myprod/cpptest/test/main.cpp:10"}
Found the breakpoint ID!
Storing debugger breakpoint Id=3
Successfully set breakpoint 3 at: /home/pi/myprod/cpptest/test/main.cpp:10
DEBUG>>00000073^done
DEBUG>>00000074^done
DEBUG>>00000075^error,msg="No executable file specified.\nUse the \"file\" or \"exec-file\" command."
Debug session ended
No executable file specified.\nUse the "file" or "exec-file" command.
... and why is he checking other Projects as::
Successfully set breakpoint 1 at: /home/pi/myprod/cpptest/hello/hello.cpp:6 and
Successfully set breakpoint 3 at: /home/pi/myprod/cpptest/test/main.cpp:10