Ticket #2309: gdb.txt.2

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

gdb session from 2.6.34

Line 
1(gdb) # disable vibrator
2(gdb) monitor mww phys 0x56000014 0
3(gdb) bt
4#0  0x33f80480 in ?? ()
5(gdb) monitor arm reg
6System and User mode registers
7      r0: 000000d3       r1: 560000b4       r2: 00000ca8       r3: 00001860
8      r4: ffffffff       r5: ffffffff       r6: ffffffff       r7: ffffffff
9      r8: ffffffff       r9: ffffffff      r10: 000001d8      r11: ffffffff
10     r12: 00000308   sp_usr: ffffffff   lr_usr: ffffffff       pc: 33f80480
11    cpsr: 000000d7
12
13FIQ mode shadow registers
14  r8_fiq: ffffffff   r9_fiq: ffffffff  r10_fiq: ffffffff  r11_fiq: ffffffff
15 r12_fiq: ffffffff   sp_fiq: ffffffff   lr_fiq: ffffffff spsr_fiq: 00000010
16
17Supervisor mode shadow registers
18  sp_svc: ffffffff   lr_svc: 300000b8 spsr_svc: 000000d3
19
20Abort mode shadow registers
21  sp_abt: ffffffff   lr_abt: 33f80488 spsr_abt: 000000d7
22
23IRQ mode shadow registers
24  sp_irq: ffffffff   lr_irq: ffffffff spsr_irq: 00000034
25
26Undefined instruction mode shadow registers
27  sp_und: ffffffff   lr_und: ffffffff spsr_und: 00000010
28(gdb) monitor mdb phys 0x37f00000 32
290x37f00000: 78 56 34 12 d0 a1 0d 00 d0 a1 15 00 00 00 08 00 39 39 39 39 39 39 31 39 6b 6b 6b 6b 6b 6b 6b 6b
30(gdb) info register
31r0             0xd3     211
32r1             0x560000b4       1442840756
33r2             0xca8    3240
34r3             0x1860   6240
35r4             0xffffffff       4294967295
36r5             0xffffffff       4294967295
37r6             0xffffffff       4294967295
38r7             0xffffffff       4294967295
39r8             0xffffffff       4294967295
40r9             0xffffffff       4294967295
41r10            0x1d8    472
42r11            0xffffffff       4294967295
43r12            0x308    776
44sp             0xffffffff       0xffffffff
45lr             0x33f80488       871892104
46pc             0x33f80480       0x33f80480
47fps            0x0      0
48cpsr           0xd7     215
49(gdb) x/4i $pc
500x33f80480:     ldr     r0, [sp, #4]
510x33f80484:     cmp     r0, #0  ; 0x0
520x33f80488:     bne     0x33f80524
530x33f8048c:     ldr     r0, [sp, #8]
54(gdb) x/32i $pc
550x33f80480:     ldr     r0, [sp, #4]
560x33f80484:     cmp     r0, #0  ; 0x0
570x33f80488:     bne     0x33f80524
580x33f8048c:     ldr     r0, [sp, #8]
590x33f80490:     cmp     r0, #0  ; 0x0
600x33f80494:     bne     0x33f8051c
610x33f80498:     mov     r0, r6
620x33f8049c:     mov     r1, r4
630x33f804a0:     mov     r2, r7
640x33f804a4:     bl      0x33680f0c
650x33f804a8:     mov     r0, r7
660x33f804ac:     b       0x33f80410
670x33f804b0:     mov     r1, r5
680x33f804b4:     mov     r0, r6
690x33f804b8:     bl      0x33f7fd24
700x33f804bc:     mov     r3, #7  ; 0x7
710x33f804c0:     mov     r10, r0
720x33f804c4:     strb    r3, [sp, #12]
730x33f804c8:     mov     r0, #48 ; 0x30
740x33f804cc:     mov     r3, #32 ; 0x20
750x33f804d0:     strb    r3, [sp, #9]
760x33f804d4:     bl      0x33db17a4
770x33f804d8:     mov     r1, r10
780x33f804dc:     add     r2, sp, #12     ; 0xc
790x33f804e0:     mov     r3, #1  ; 0x1
800x33f804e4:     mov     r8, r0
810x33f804e8:     bl      0x33d13b38
820x33f804ec:     add     r1, sp, #16     ; 0x10
830x33f804f0:     str     r8, [r1, #-16]!
840x33f804f4:     mov     r2, r7
850x33f804f8:     mov     r1, sp
860x33f804fc:     mov     r0, r5
87(gdb) c
88Continuing.
89^C
90Program received signal SIGINT, Interrupt.
910x33f80480 in ?? ()
92(gdb) c
93Continuing.
94^C
95Program received signal SIGINT, Interrupt.
960x33f80480 in ?? ()
97(gdb) c
98Continuing.
99^C
100Program received signal SIGINT, Interrupt.
1010x33f80480 in ?? ()
102(gdb) c
103Continuing.
104^C
105Program received signal SIGINT, Interrupt.
1060x33f80480 in ?? ()
107(gdb) c
108Continuing.
109^C
110Program received signal SIGINT, Interrupt.
1110x33f80480 in ?? ()
112(gdb) c
113Continuing.
114^C
115Program received signal SIGINT, Interrupt.
1160x33f80480 in ?? ()
117(gdb) c
118Continuing.
119^C
120Program received signal SIGINT, Interrupt.
1210x33f80480 in ?? ()
122(gdb) c
123Continuing.
124^C
125Program received signal SIGINT, Interrupt.
1260x33f80480 in ?? ()
127(gdb) c
128Continuing.
129^C
130Program received signal SIGINT, Interrupt.
1310x33f80480 in ?? ()
132(gdb) c
133Continuing.
134^C
135Program received signal SIGINT, Interrupt.
1360x33f80480 in ?? ()
137(gdb) c
138Continuing.
139^C
140Program received signal SIGINT, Interrupt.
1410x33f80480 in ?? ()
142(gdb) c
143Continuing.
144^C
145Program received signal SIGINT, Interrupt.
1460x00000010 in ?? ()
147(gdb) monitor arm reg
148System and User mode registers
149      r0: 000000d3       r1: 560000b4       r2: 00000ca8       r3: 00001860
150      r4: ffffffff       r5: ffffffff       r6: ffffffff       r7: ffffffff
151      r8: ffffffff       r9: ffffffff      r10: 000001d8      r11: ffffffff
152     r12: 00000308   sp_usr: ffffffff   lr_usr: ffffffff       pc: 00000010
153    cpsr: 000000d7
154
155FIQ mode shadow registers
156  r8_fiq: ffffffff   r9_fiq: ffffffff  r10_fiq: ffffffff  r11_fiq: ffffffff
157 r12_fiq: ffffffff   sp_fiq: ffffffff   lr_fiq: ffffffff spsr_fiq: 00000010
158
159Supervisor mode shadow registers
160  sp_svc: ffffffff   lr_svc: 300000b8 spsr_svc: 000000d3
161
162Abort mode shadow registers
163  sp_abt: ffffffff   lr_abt: 33f80488 spsr_abt: 000000d7
164
165IRQ mode shadow registers
166  sp_irq: ffffffff   lr_irq: ffffffff spsr_irq: 00000034
167
168Undefined instruction mode shadow registers
169  sp_und: ffffffff   lr_und: ffffffff spsr_und: 00000010
170(gdb) x/32i $pc
1710x10:   ldr     pc, [pc, #20]   ; 0x2c
1720x14:   ldr     pc, [pc, #20]   ; 0x30
1730x18:   ldr     pc, [pc, #20]   ; 0x34
1740x1c:   ldr     pc, [pc, #20]   ; 0x38
1750x20:   mvnscc  r0, #-2147483647        ; 0x80000001
1760x24:   mvnscc  r0, #3  ; 0x3
1770x28:   mvnscc  r0, #536870912  ; 0x20000000
1780x2c:   mvnscc  r0, #-2147483648        ; 0x80000000
1790x30:   mvnscc  r0, #-536870912 ; 0xe0000000
1800x34:   mvnscc  r0, #268435456  ; 0x10000000
1810x38:   mvnscc  r0, #536870912  ; 0x20000000
1820x3c:   cdple   14, 10, cr11, cr13, cr15, {7}
1830x40:   andeq   r0, r0, r0
1840x44:   andeq   r0, r0, r0
1850x48:   andeq   r0, r0, r0
1860x4c:   mvnscc  r0, #72 ; 0x48
1870x50:   andeq   r0, r0, r0
1880x54:   mvnscc  r0, #80 ; 0x50
1890x58:   muleq   r3, r12, pc
1900x5c:   mvnscc  r0, #0  ; 0x0
1910x60:   mvnscc  r0, #0  ; 0x0
1920x64:   mvnscc  r4, #624        ; 0x270
1930x68:   strcc   r8, [r0], #-700
1940x6c:   bleq    0xfeb703ec
1950x70:   bleq    0xfeb703f0
1960x74:   mrs     r0, CPSR
1970x78:   bic     r0, r0, #31     ; 0x1f
1980x7c:   orr     r0, r0, #211    ; 0xd3
1990x80:   msr     CPSR_fc, r0
2000x84:   ldr     r0, [pc, #1332] ; 0x5c0
2010x88:   ldr     r1, [r0]
2020x8c:   orr     r1, r1, #8      ; 0x8
203(gdb) # printk according to System.map
204(gdb) x/8i 0xc004152c
2050xc004152c <printk>:    andeq   r0, r0, r0
2060xc0041530 <printk+4>:  andeq   r0, r0, r0
2070xc0041534 <printk+8>:  andeq   r0, r0, r0
2080xc0041538 <printk+12>: andeq   r0, r0, r0
2090xc004153c <printk+16>: andeq   r0, r0, r0
2100xc0041540 <printk+20>: andeq   r0, r0, r0
2110xc0041544 <printk+24>: andeq   r0, r0, r0
2120xc0041548 <printk+28>: andeq   r0, r0, r0
213(gdb) monitor arm920t read_cache fr.cache.2
214Ignoring packet error, continuing...
215Reply contains invalid hex digit 116
216(gdb) monitor arm920t read_mmu fr.mmu.2
217mmu content successfully output to fr.mmu.2