0
|
1 tb main
|
286
|
2 # run -s test/arg.c
|
268
|
3 # run -s -ob00.s mc-parse.c
|
331
|
4 # run -s l.c
|
348
|
5 run -s test/macro.c
|
298
|
6 # run -s test/code-gen-all.c
|
32
|
7 define regs
|
116
|
8 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
|
111
|
9 printf "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
10 end
|
|
11 define fregs
|
|
12 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
|
|
13 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
|
32
|
14 end
|
116
|
15 define allreg
|
|
16 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
|
|
17 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
|
|
18 printf "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
19 printf "r16=%08x r17=%08x r18=%08x r19=%08x r20=%08x r21=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
|
|
20 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
|
|
21 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
|
|
22 printf "f20=%g f21=%g f22=%g f23=%g f24=%g f25=%g\n",$f20,$f21,$f22,$f23,$f24,$f25
|
|
23 end
|
|
24 define sh
|
|
25 regs
|
|
26 x/20i $pc-36
|
|
27 end
|
32
|
28 define si
|
|
29 stepi
|
|
30 regs
|
110
|
31 x/1i $pc
|
32
|
32 end
|
|
33 define ni
|
|
34 nexti
|
51
|
35 regs
|
110
|
36 x/1i $pc
|
32
|
37 end
|
39
|
38 b errmsg
|