Ticket #2309: gdb.txt

File gdb.txt, 5.8 KB (added by lindi, 8 years ago)

output of gdb session

Line 
1(gdb) bt
2#0  0xffff000c in ?? ()
3(gdb) info register
4r0             0xc03193dc       3224474588
5r1             0x200000d3       536871123
6r2             0x0      0
7r3             0x200000d3       536871123
8r4             0xc03193dc       3224474588
9r5             0xc0e4bdcc       3236216268
10r6             0xfb000000       4211081216
11r7             0xc0383cd4       3224911060
12r8             0xc036e6c8       3224823496
13r9             0x0      0
14r10            0xc036e6cc       3224823500
15r11            0xc0e4bdac       3236216236
16r12            0xc0e4bdb0       3236216240
17sp             0xc028bd2c       0xc028bd2c
18lr             0x13a82ac        20611756
19pc             0xffff000c       0xffff000c
20fps            0x0      0
21cpsr           0x200000d7       536871127
22(gdb) x/4i $pc
230xffff000c:     b       0xffff0300
240xffff0010:     b       0xffff0280
250xffff0014:     b       0xffff0404
260xffff0018:     b       0xffff0200
27(gdb) c
28Continuing.
29^C
30Program received signal SIGINT, Interrupt.
310xffff000c in ?? ()
32(gdb) c
33Continuing.
34^C
35Program received signal SIGINT, Interrupt.
360xffff000c in ?? ()
37(gdb) print *(int*)0xfb000014
38$3 = 8
39(gdb) set *(int*)0xfb000014 = 0
40# vibrator successfully turned off
41(gdb) c
42Continuing.
43^C
44Program received signal SIGINT, Interrupt.
450xffff0010 in ?? ()
46(gdb) c
47Continuing.
48^C
49Program received signal SIGINT, Interrupt.
500xffff0010 in ?? ()
51(gdb) x/4i $pc
520xffff0010:     b       0xffff0280
530xffff0014:     b       0xffff0404
540xffff0018:     b       0xffff0200
550xffff001c:     mov     pc, r8
56(gdb) break *0xffff0280
57Breakpoint 1 at 0xffff0280
58(gdb) c
59Continuing.
60
61Breakpoint 1, 0xffff0280 in ?? ()
62(gdb) x/4i $pc
630xffff0280:     b       0x13a82a8
640xffff0284:     stm     sp, {r0, lr}
650xffff0288:     mrs     pc, SPSR
660xffff028c:     str     lr, [sp, #8]
67(gdb) break *0x13a82a8
68Breakpoint 2 at 0x13a82a8
69(gdb) c
70Continuing.
71^C
72Program received signal SIGINT, Interrupt.
730xffff0010 in ?? ()
74(gdb) x/4i $pc
750xffff0010:     b       0xffff0280
760xffff0014:     b       0xffff0404
770xffff0018:     b       0xffff0200
780xffff001c:     mov     pc, r8
79(gdb) c
80Continuing.
81
82Breakpoint 1, 0xffff0280 in ?? ()
83(gdb) c
84Continuing.
85^C
86Program received signal SIGINT, Interrupt.
870xffff0010 in ?? ()
88(gdb) c
89Continuing.
90
91Breakpoint 1, 0xffff0280 in ?? ()
92(gdb) c
93Continuing.
94^C
95Program received signal SIGINT, Interrupt.
960xffff000c in ?? ()
97(gdb) delete 1
98(gdb) delete 2
99(gdb) x/4i $0x13a82a8
1000x13a82a8:      b       0x13a859c
1010x13a82ac:      b       0x13a85a0
1020x13a82b0:      b       0x13a85a4
1030x13a82b4:      b       0x13a85a8
104(gdb) x/ai 0x13a82a8
1050x13a82a8:      0xea0000bb      0xea0000bb      0xea0000bb      0xea0000bb
106(gdb) x/16a 0x13a82a8
1070x13a82a8:      0xea0000bb      0xea0000bb      0xea0000bb      0xea0000bb
1080x13a82b8:      0xea0000bb      0xea0000bb      0xea0000bb      0xea0000bb
1090x13a82c8:      0xea0000bb      0xea0000bb      0xea0000bb      0xea0000bb
1100x13a82d8:      0xea0000bb      0xea0000bb      0xea0000bb      0xea0000bb
111(gdb) c
112Continuing.
113^C
114Program received signal SIGINT, Interrupt.
1150xffff0010 in ?? ()
116(gdb) x/14i 0x13a82ac
1170x13a82ac:      b       0x13a851c
1180x13a82b0:      b       0x13a8520
1190x13a82b4:      b       0x13a8524
1200x13a82b8:      b       0x13a8528
1210x13a82bc:      b       0x13a852c
1220x13a82c0:      b       0x13a8530
1230x13a82c4:      b       0x13a8534
1240x13a82c8:      b       0x13a8538
1250x13a82cc:      b       0x13a853c
1260x13a82d0:      b       0x13a8540
1270x13a82d4:      b       0x13a8544
1280x13a82d8:      b       0x13a8548
1290x13a82dc:      b       0x13a854c
1300x13a82e0:      b       0x13a8550
131(gdb) c
132Continuing.
133^C
134Program received signal SIGINT, Interrupt.
1350xffff000c in ?? ()
136(gdb) x/16c 0x37f00000
1370x37f00000:     -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»'
1380x37f00008:     -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»' -69 '»'
139(gdb) x/32cx 0x37f00000
1400x37f00000:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1410x37f00008:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1420x37f00010:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1430x37f00018:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
144(gdb) c
145Continuing.
146^C
147Program received signal SIGINT, Interrupt.
1480xffff000c in ?? ()
149(gdb) x/32cx 0x30000000
1500x30000000:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1510x30000008:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1520x30000010:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1530x30000018:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
154(gdb) x/32cx 0x30000000
1550x30000000:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1560x30000008:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1570x30000010:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1580x30000018:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
159(gdb) x/32cx 0x34000000
1600x34000000:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1610x34000008:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1620x34000010:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
1630x34000018:     0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb    0xbb
164(gdb) set *(int*)0x30000000 = 1
165Cannot access memory at address 0x30000000
166# openocd prints Error: Address translation failure
167(gdb) c
168Continuing.
169^C
170Program received signal SIGINT, Interrupt.
1710xffff0010 in ?? ()
172(gdb) x/4cx 0x00000000
1730x0:    0x9a    0x9a    0x9a    0x9a
174(gdb) x/16cx 0x00000000
1750x0:    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1760x8:    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
177(gdb) x/32cx 0x00000000
1780x0:    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1790x8:    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1800x10:   0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1810x18:   0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
182(gdb) x/32cx 0x18000000
1830x18000000:     0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1840x18000008:     0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1850x18000010:     0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
1860x18000018:     0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a    0x9a
187(gdb) c
188Continuing.
189^C
190# this is after the target supposedly ran out of battery:
191Program received signal SIGINT, Interrupt.
1920xffff0010 in ?? ()
193(gdb) c
194Continuing.
195
196Program received signal SIGINT, Interrupt.
1970xffff000c in ?? ()
198(gdb) x/32cx 0x18000000
1990x18000000:     0x00    0x00    0x00    0x00    0x00    0x00    0x00    0x00
2000x18000008:     0x00    0x00    0x00    0x00    0x00    0x00    0x00    0x00
2010x18000010:     0x00    0x00    0x00    0x00    0x00    0x00    0x00    0x00
2020x18000018:     0x00    0x00    0x00    0x00    0x00    0x00    0x00    0x00
203(gdb) c
204Continuing.
205timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
206timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
207timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
208timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
209invalid mode value encountered 0
210cpsr contains invalid mode value - communication failure
211Remote failure reply: E0E
212(gdb)