-
-
Save Salzi/9489fe248e15c3a6a3e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
656,773 2-gdb-version | |
656,773 ~"GNU gdb (GDB) 7.10\n" | |
656,773 ~"Copyright (C) 2015 Free Software Foundation, Inc.\n" | |
656,773 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ | |
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\ | |
ed by law. Type \"show copying\"\nand \"show warranty\" for details.\n" | |
656,773 ~"This GDB was configured as \"--host=x86_64-unknown-linux-gnu --target=arm-none-eabi\".\nTy\ | |
pe \"show configuration\" for configuration details." | |
656,773 ~"\nFor bug reporting instructions, please see:\n" | |
656,774 ~"<http://www.gnu.org/software/gdb/bugs/>.\n" | |
656,774 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\ | |
ware/gdb/documentation/>.\n" | |
656,774 ~"For help, type \"help\".\n" | |
656,774 ~"Type \"apropos word\" to search for commands related to \"word\".\n" | |
656,774 2^done | |
656,774 (gdb) | |
656,774 3-environment-cd SMT32Test | |
656,775 3^done | |
656,775 (gdb) | |
656,779 4-gdb-set breakpoint pending on | |
656,779 4^done | |
656,779 (gdb) | |
656,780 5-enable-pretty-printing | |
656,780 5^done | |
656,780 (gdb) | |
656,784 6maintenance set python print-stack off | |
656,785 &"maintenance set python print-stack off\n" | |
656,785 &"Undefined maintenance set command: \"python print-stack off\". Try \"help maintenance set\ | |
\".\n" | |
656,785 6^error,msg="Undefined maintenance set command: \"python print-stack off\". Try \"help main\ | |
tenance set\"." | |
656,785 (gdb) | |
656,786 7-list-thread-groups | |
656,787 7^done,groups=[{id="i1",type="process"}] | |
656,787 (gdb) | |
656,787 8-gdb-set print object on | |
656,788 8^done | |
656,788 (gdb) | |
656,788 9-gdb-set print sevenbit-strings on | |
656,789 9^done | |
656,789 (gdb) | |
656,790 10-gdb-set host-charset UTF-8 | |
656,790 10^done | |
656,790 (gdb) | |
656,792 11-gdb-set target-charset UTF-8 | |
656,793 11^done | |
656,793 (gdb) | |
656,807 12-gdb-set target-wide-charset UTF-32 | |
656,807 12^done | |
656,807 (gdb) | |
656,808 13source .gdbinit | |
656,808 &"source .gdbinit\n" | |
656,808 &".gdbinit: No such file or directory.\n" | |
656,808 13^error,msg=".gdbinit: No such file or directory." | |
656,808 (gdb) | |
656,809 14-gdb-set target-async off | |
656,810 14^done | |
656,810 (gdb) | |
656,810 15-gdb-set auto-solib-add on | |
656,810 15^done | |
656,810 (gdb) | |
656,813 16-file-exec-and-symbols SMT32Test/Debug/SMT32Test.elf | |
657,040 16^done | |
657,049 (gdb) | |
657,050 17-gdb-show language | |
657,050 17^done,value="auto" | |
657,050 (gdb) | |
657,050 18-gdb-set language c | |
657,050 18^done | |
657,051 (gdb) | |
657,051 19-interpreter-exec console "p/x (char)-1" | |
657,051 ~"$1 = 0xff\n" | |
657,052 19^done | |
657,052 (gdb) | |
657,052 20-data-evaluate-expression "sizeof (void*)" | |
657,053 20^done,value="4" | |
657,053 (gdb) | |
657,053 21-gdb-set language auto | |
657,053 21^done | |
657,053 (gdb) | |
657,054 22-interpreter-exec console "show endian" | |
657,054 ~"The target endianness is set automatically (currently little endian)\n" | |
657,054 22^done | |
657,054 (gdb) | |
657,058 23-break-insert -t -f code/main.c:main | |
657,059 23^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x08002988",func="ma\ | |
in",file="code/main.c",fullname="code/\ | |
main.c",line="49",thread-groups=["i1"],times="0",original-location="code/main.c:main"} | |
657,059 (gdb) | |
657,066 24-break-insert -t -f main | |
657,067 24^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x08002988",func="ma\ | |
in",file="code/main.c",fullname="code/\ | |
main.c",line="49",thread-groups=["i1"],times="0",original-location="main"} | |
657,067 (gdb) | |
657,078 25-inferior-tty-set /dev/pts/3 | |
657,078 25^done | |
657,078 (gdb) | |
657,102 26-exec-run | |
657,102 26^error,msg="Don't know how to run. Try \"help target\"." | |
657,102 (gdb) | |
657,105 27-gdb-exit | |
657,108 27^exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
372,477 2-gdb-show language | |
372,477 2^done,value="auto" | |
372,479 (gdb) | |
372,488 3-data-evaluate-expression "sizeof (void*)" | |
372,489 3^done,value="4" | |
372,489 (gdb) | |
372,490 4-gdb-set language auto | |
372,492 4^done | |
372,492 (gdb) | |
372,496 5-interpreter-exec console "show endian" | |
372,497 ~"The target endianness is set automatically (currently little endian)\n" | |
372,497 5^done | |
372,497 (gdb) | |
372,504 6-gdb-version | |
372,505 ~"GNU gdb (Linaro GDB) 7.8-2014.09\n" | |
372,505 ~"Copyright (C) 2014 Free Software Foundation, Inc.\n" | |
372,505 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ | |
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\ | |
ed by law. Type \"show copying\"\nand \"show warranty\" for details.\n" | |
372,505 ~"This GDB was configured as \"--host=x86_64-unknown-linux-gnu --target=arm-none-eabi\".\nTy\ | |
pe \"show configuration\" for configuration details." | |
372,505 ~"\nFor bug reporting instructions, please see:\n" | |
372,505 ~"<http://bugs.linaro.org>.\n" | |
372,505 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\ | |
ware/gdb/documentation/>.\n" | |
372,505 ~"For help, type \"help\".\n" | |
372,505 ~"Type \"apropos word\" to search for commands related to \"word\".\n" | |
372,506 6^done | |
372,506 (gdb) | |
372,509 7-environment-cd SMT32Test | |
372,509 7^done | |
372,509 (gdb) | |
372,512 8-gdb-set breakpoint pending on | |
372,512 8^done | |
372,512 (gdb) | |
372,515 9-enable-pretty-printing | |
372,515 9^done | |
372,515 (gdb) | |
372,516 10-gdb-set python print-stack none | |
372,516 10^done | |
372,516 (gdb) | |
372,518 11-gdb-set print object on | |
372,518 11^done | |
372,518 (gdb) | |
372,519 12-gdb-set print sevenbit-strings on | |
372,520 12^done | |
372,520 (gdb) | |
372,522 13-gdb-set charset ISO-8859-1 | |
372,522 13^done | |
372,523 (gdb) | |
372,534 14source .gdbinit | |
372,534 &"source .gdbinit\n" | |
372,535 &".gdbinit: No such file or directory.\n" | |
372,535 14^error,msg=".gdbinit: No such file or directory." | |
372,535 (gdb) | |
372,545 15set mem inaccessible-by-default off | |
372,545 &"set mem inaccessible-by-default off\n" | |
372,545 =cmd-param-changed,param="mem inaccessible-by-default",value="off" | |
372,545 15^done | |
372,545 (gdb) | |
372,546 16-gdb-set auto-solib-add on | |
372,547 16^done | |
372,547 (gdb) | |
372,552 17-target-select remote localhost:3333 | |
372,556 =thread-group-started,id="i1",pid="42000" | |
372,556 =thread-created,id="1",group-id="i1" | |
372,558 ~"0x00000000 in ?? ()\n" | |
372,558 *stopped,frame={addr="0x00000000",func="??",args=[]},thread-id="1",stopped-threads="all" | |
372,559 17^connected | |
372,559 (gdb) | |
372,559 18-list-thread-groups --available | |
372,559 18^error,msg="Can not fetch data now." | |
372,563 (gdb) | |
372,613 19symbol-file SMT32Test/Debug/SMT32Test.elf | |
372,613 20load SMT32Test/Debug/SMT32Test.elf | |
372,613 &"symbol-file SMT32Test/Debug/SMT32Test.elf\n" | |
372,619 ~"Reading symbols from SMT32Test/Debug/SMT32Test.elf..." | |
372,619 ~"done.\n" | |
372,831 19^done | |
372,831 (gdb) | |
372,832 &"load SMT32Test/Debug/SMT32Test.elf\n" | |
373,581 ~"Loading section .isr_vector, size 0x370 lma 0x8000000\n" | |
373,582 20+download,{section=".isr_vector",section-size="880",total-size="643745"} | |
373,582 20+download,{section=".isr_vector",section-sent="880",section-size="880",total-sent="880",to\ | |
tal-size="643745"} | |
373,582 ~"Loading section .inits, size 0x28 lma 0x8000370\n" | |
373,582 20+download,{section=".inits",section-size="40",total-size="643745"} | |
373,582 ~"Loading section .text, size 0x7760 lma 0x8000398\n" | |
373,583 20+download,{section=".text",section-size="30560",total-size="643745"} | |
373,584 ~"Loading section .ARM.exidx, size 0x8 lma 0x8007af8\n" | |
373,584 20+download,{section=".ARM.exidx",section-size="8",total-size="643745"} | |
373,584 ~"Loading section .data, size 0x8b0 lma 0x8007b00\n" | |
373,584 20+download,{section=".data",section-size="2224",total-size="643745"} | |
373,643 21-list-thread-groups | |
374,884 ~"Start address 0x80001e4, load size 33712\n" | |
374,884 ~"Transfer rate: 16 KB/sec, 5618 bytes/write.\n" | |
374,983 20^done | |
374,983 (gdb) | |
374,984 21^done,groups=[{id="i1",type="process",pid="42000"}] | |
374,986 (gdb) | |
374,987 22-gdb-show --thread-group i1 language | |
374,989 22^done,value="auto" | |
374,989 (gdb) | |
374,990 23-gdb-set --thread-group i1 language c | |
374,990 23^done | |
374,990 (gdb) | |
374,991 24-interpreter-exec --thread-group i1 console "p/x (char)-1" | |
374,992 ~"$1 = 0xff\n" | |
374,992 24^done | |
374,992 (gdb) | |
374,993 25-data-evaluate-expression --thread-group i1 "sizeof (void*)" | |
374,993 25^done,value="4" | |
374,993 (gdb) | |
374,994 26-gdb-set --thread-group i1 language auto | |
374,995 26^done | |
374,995 (gdb) | |
374,995 27-interpreter-exec --thread-group i1 console "show endian" | |
374,996 ~"The target endianness is set automatically (currently little endian)\n" | |
374,996 27^done | |
374,996 (gdb) | |
375,018 28-break-insert --thread-group i1 -t -f code/main.c:main | |
375,020 28^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0800298a",func="ma\ | |
in",file="code/main.c",fullname="code/\ | |
main.c",line="53",thread-groups=["i1"],times="0",original-location="c\ | |
ode/main.c:main"} | |
375,021 (gdb) | |
375,035 29-list-thread-groups i1 | |
375,036 29^done,threads=[{id="1",target-id="Remote target",frame={level="0",addr="0x080001e4",func="\ | |
_start",args=[],file="../system/src/newlib/_startup.c",fullname="SMT32Tes\ | |
t/system/src/newlib/_startup.c",line="224"},state="stopped"}] | |
375,037 (gdb) | |
375,039 30monitor reset halt | |
375,039 31monitor halt | |
375,039 32tbreak main | |
375,039 33monitor reg | |
375,039 34continue | |
375,040 &"monitor reset halt\n" | |
375,062 @"target state: halted\n" | |
375,062 @"target halted due to debug-request, current mode: Thread \n" | |
375,062 @"xPSR: 0x01000000 pc: 0x1fffedcc msp: 0x200003dc\n" | |
375,063 35-stack-info-depth --thread 1 11 | |
375,063 30^done | |
375,063 (gdb) | |
375,063 &"monitor halt\n" | |
375,064 31^done | |
375,064 (gdb) | |
375,065 &"tbreak main\n" | |
375,068 ~"Note: breakpoint 1 also set at pc 0x800298a.\n" | |
375,068 ~"Temporary breakpoint 2 at 0x800298a: file code/main.c, line\ | |
53.\n" | |
375,069 =breakpoint-created,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x080029\ | |
8a",func="main",file="code/main.c",fullname="code/main.c",line="53",thread-groups=["i1"],times="0",original-location="main"} | |
375,069 32^done | |
375,069 (gdb) | |
375,069 &"monitor reg\n" | |
375,070 @"===== arm v7m registers\n" | |
375,070 @"(0) r0 (/32): 0x00000020\n" | |
375,070 @"(1) r1 (/32): 0x00000000\n" | |
375,070 @"(2) r2 (/32): 0x2000003C\n" | |
375,070 @"(3) r3 (/32): 0x2000083C\n" | |
375,070 @"(4) r4 (/32): 0x080083B0\n" | |
375,070 @"(5) r5 (/32): 0x20000474\n" | |
375,070 @"(6) r6 (/32): 0x00000020\n" | |
375,070 @"(7) r7 (/32): 0x00000014\n" | |
375,070 @"(8) r8 (/32): 0xDF5F5EDC\n" | |
375,070 @"(9) r9 (/32): 0xD0765E2E\n" | |
375,070 @"(10) r10 (/32): 0xF63FBD3E\n" | |
375,070 @"(11) r11 (/32): 0xCB475F4A\n" | |
375,070 @"(12) r12 (/32): 0x01010101\n" | |
375,070 @"(13) sp (/32): 0x200003DC\n" | |
375,070 @"(14) lr (/32): 0xFFFFFFFF\n" | |
375,070 @"(15) pc (/32): 0x1FFFEDCC\n" | |
375,070 @"(16) xPSR (/32): 0x01000000\n" | |
375,070 @"(17) msp (/32): 0x200003DC\n" | |
375,070 @"(18) psp (/32): 0x258B949C\n" | |
375,070 @"(19) primask (/1): 0x00\n" | |
375,070 @"(20) basepri (/8): 0x00\n" | |
375,070 @"(21) faultmask (/1): 0x00\n" | |
375,070 @"(22) control (/2): 0x00\n" | |
375,070 @"===== Cortex-M DWT registers\n" | |
375,070 @"(23) dwt_ctrl (/32)\n" | |
375,070 @"(24) dwt_cyccnt (/32)\n" | |
375,070 @"(25) dwt_0_comp (/32)\n" | |
375,070 @"(26) dwt_0_mask (/4)\n" | |
375,071 @"(27) dwt_0_function (/32)\n" | |
375,071 @"(28) dwt_1_comp (/32)\n" | |
375,071 @"(29) dwt_1_mask (/4)\n" | |
375,071 @"(30) dwt_1_function (/32)\n" | |
375,071 @"(31) dwt_2_comp (/32)\n" | |
375,071 @"(32) dwt_2_mask (/4)\n" | |
375,071 @"(33) dwt_2_function (/32)\n" | |
375,071 @"(34) dwt_3_comp (/32)\n" | |
375,071 @"(35) dwt_3_mask (/4)\n" | |
375,071 @"(36) dwt_3_function (/32)\n" | |
375,071 33^done | |
375,071 (gdb) | |
375,071 &"continue\n" | |
375,071 ~"Continuing.\n" | |
375,071 ~"Note: automatically using hardware breakpoints for read-only addresses.\n" | |
375,073 34^running | |
375,073 *running,thread-id="all" | |
375,073 (gdb) | |
375,186 =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x08002\ | |
98a",func="main",file="code/main.c",fullname="code/main.c",line="53",thread-groups=["i1"],times="1",original-location="/code/main.c:main"} | |
375,186 =breakpoint-modified,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x08002\ | |
98a",func="main",file="code/main.c",fullname="code/main.c",line="53",thread-groups=["i1"],times="1",original-location="main"} | |
375,188 ~"\nTemporary breakpoint " | |
375,188 ~"1, main (argc=1, argv=0x20000018 <argv>) at code/main.c:53\\ | |
n" | |
375,189 ~"53\t\tmain_demo();\n" | |
375,189 *stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x0800298a",func="main",\ | |
args=[{name="argc",value="1"},{name="argv",value="0x20000018 <argv>"}],file="code/main.c",fullname="code/main.c",line="53"},thread-id="1",\ | |
stopped-threads="all" | |
375,189 =breakpoint-deleted,id="1" | |
375,189 =breakpoint-deleted,id="2" | |
375,189 (gdb) | |
375,189 35^done,depth="1" | |
375,190 (gdb) | |
375,221 36-break-delete --thread-group i1 2 | |
375,222 ~"No breakpoint number 2.\n" | |
375,222 36^done | |
375,222 (gdb) | |
376,127 37-list-thread-groups | |
376,128 37^done,groups=[{id="i1",type="process",pid="42000"}] | |
376,128 (gdb) | |
376,130 38-thread-info 1 | |
376,140 38^done,threads=[{id="1",target-id="Remote target",frame={level="0",addr="0x0800298a",func="\ | |
main",args=[{name="argc",value="1"},{name="argv",value="0x20000018 <argv>"}],file="code/main.c",fullname="code/main.c",line="53"},state="s\ | |
topped"}] | |
376,140 (gdb) | |
376,407 39-stack-list-locals --thread 1 --frame 0 1 | |
376,407 39^done,locals=[] | |
376,407 (gdb) | |
376,459 40-var-create --thread 1 --frame 0 - * argc | |
376,460 40^done,name="var1",numchild="0",value="1",type="int",thread-id="1",has_more="0" | |
376,461 (gdb) | |
376,461 41-var-create --thread 1 --frame 0 - * argv | |
376,461 41^done,name="var2",numchild="1",value="0x20000018 <argv>",type="char **",thread-id="1",has_\ | |
more="0" | |
376,461 (gdb) | |
519,812 42-exec-continue --thread 1 | |
519,812 42^running | |
519,812 *running,thread-id="all" | |
519,812 (gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment