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