… so I'm examining the gdb output protocol.
Code: Select all
Using gdbinit file: /tmp/codelite_gdbinit.txt
Current working dir: /home/pi/myprod/cpptest/p13_servo
Launching gdb from : ./Debug
Starting debugger : /usr/bin/gdb --command="/tmp/codelite_gdbinit.txt" --tty=/dev/pts/6 --interpreter=mi "./p13_servo"
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>>00000066-break-insert -f "/home/pi/myprod/cpptest/p13_servo/main.cpp:21"
DEBUG>>00000067-break-insert -f "/home/pi/myprod/cpptest/p13_servo/main.cpp:22"
DEBUG>>00000068-enable-pretty-printing
Debug session started successfully!
DEBUG>>00000069-exec-arguments
DEBUG>>00000070-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>>~"Reading symbols from ./p13_servo..."
Reading symbols from ./p13_servo...
DEBUG>>~"done.\n"
done.
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>>00000066^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010b40",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21",thread-groups=["i1"],times="0",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:21"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/pi/myprod/cpptest/p13_servo/main.cpp:21
DEBUG>>00000067^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00010b4c",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="22",thread-groups=["i1"],times="0",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:22"}
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: /home/pi/myprod/cpptest/p13_servo/main.cpp:22
DEBUG>>00000068^done
DEBUG>>00000069^done
>> Debuggee process ID: 1976
DEBUG>>=thread-group-started,id="i1",pid="1976"
=thread-group-started,id="i1",pid="1976"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>=library-loaded,id="/lib/ld-linux-armhf.so.3",target-name="/lib/ld-linux-armhf.so.3",host-name="/lib/ld-linux-armhf.so.3",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/ld-linux-armhf.so.3",target-name="/lib/ld-linux-armhf.so.3",host-name="/lib/ld-linux-armhf.so.3",symbols-loaded="0",thread-group="i1"
DEBUG>>00000070^running
Continuing...
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="/usr/lib/arm-linux-gnueabihf/libarmmem.so",target-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",host-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/arm-linux-gnueabihf/libarmmem.so",target-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",host-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/libwiringPi.so",target-name="/usr/lib/libwiringPi.so",host-name="/usr/lib/libwiringPi.so",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/libwiringPi.so",target-name="/usr/lib/libwiringPi.so",host-name="/usr/lib/libwiringPi.so",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",target-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",host-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",target-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",host-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/libm.so.6",target-name="/lib/arm-linux-gnueabihf/libm.so.6",host-name="/lib/arm-linux-gnueabihf/libm.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/libm.so.6",target-name="/lib/arm-linux-gnueabihf/libm.so.6",host-name="/lib/arm-linux-gnueabihf/libm.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/libgcc_s.so.1",target-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",host-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/libgcc_s.so.1",target-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",host-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/libc.so.6",target-name="/lib/arm-linux-gnueabihf/libc.so.6",host-name="/lib/arm-linux-gnueabihf/libc.so.6",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/libc.so.6",target-name="/lib/arm-linux-gnueabihf/libc.so.6",host-name="/lib/arm-linux-gnueabihf/libc.so.6",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/libpthread.so.0",target-name="/lib/arm-linux-gnueabihf/libpthread.so.0",host-name="/lib/arm-linux-gnueabihf/libpthread.so.0",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/libpthread.so.0",target-name="/lib/arm-linux-gnueabihf/libpthread.so.0",host-name="/lib/arm-linux-gnueabihf/libpthread.so.0",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/librt.so.1",target-name="/lib/arm-linux-gnueabihf/librt.so.1",host-name="/lib/arm-linux-gnueabihf/librt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/librt.so.1",target-name="/lib/arm-linux-gnueabihf/librt.so.1",host-name="/lib/arm-linux-gnueabihf/librt.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="/lib/arm-linux-gnueabihf/libcrypt.so.1",target-name="/lib/arm-linux-gnueabihf/libcrypt.so.1",host-name="/lib/arm-linux-gnueabihf/libcrypt.so.1",symbols-loaded="0",thread-group="i1"
=library-loaded,id="/lib/arm-linux-gnueabihf/libcrypt.so.1",target-name="/lib/arm-linux-gnueabihf/libcrypt.so.1",host-name="/lib/arm-linux-gnueabihf/libcrypt.so.1",symbols-loaded="0",thread-group="i1"
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"Using host libthread_db library \"/lib/arm-linux-gnueabihf/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
DEBUG>>=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010b40",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21",thread-groups=["i1"],times="1",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:21"}
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010b40",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21",thread-groups=["i1"],times="1",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:21"}
DEBUG>>~"\n"
DEBUG>>~"Breakpoint 1, main () at /home/pi/myprod/cpptest/p13_servo/main.cpp:21\n"
Breakpoint 1, main () at /home/pi/myprod/cpptest/p13_servo/main.cpp:21
DEBUG>>~"21\t\tpinMode(1, PWM_OUTPUT);\n"
21\t\tpinMode(1, PWM_OUTPUT);
DEBUG>>*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x00010b40",func="main",args=[],file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21"},thread-id="1",stopped-threads="all",core="0"
DEBUG>>00000071-stack-info-frame
DEBUG>>00000072-break-list
DEBUG>>00000071^done,frame={level="0",addr="0x00010b40",func="main",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21"}
DEBUG>>00000072^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00010b40",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="21",thread-groups=["i1"],times="1",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:21"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00010b4c",func="main()",file="/home/pi/myprod/cpptest/p13_servo/main.cpp",fullname="/home/pi/myprod/cpptest/p13_servo/main.cpp",line="22",thread-groups=["i1"],times="0",original-location="/home/pi/myprod/cpptest/p13_servo/main.cpp:22"}]}