annotate .gdbinit.arm @ 935:7672a37e7545 default tip

Raspbery PI ARM support begin
author kono
date Sat, 24 Dec 2016 03:02:57 +0000
parents 5a3b1b65c6a8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
410
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
1 tb main
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
2 # run -s test/arg.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
3 # run -s mc-parse.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
4 # run -s mc-codegen.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
5 # run -s nkf203/nkf.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
6 # run -s -ob01.s mc-switch.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
7 # run -s l.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
8 run -s test/bitfield.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
9 # run -s test/basic.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
10 # run -s test/code-gen-all.c
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
11 define regs
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
12 printf "pc=%08x lr=%08x r0=%08x r1=%08x r2=%08x r3=%08x r4=%08x\n",$pc,$lr,$r0,$r1,$r2,$r3,$r4
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
13 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
14 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
15 define fregs
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
16 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
17 printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
18 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
19 define allreg
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
20 printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
21 printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
22 printf "sl=%08x lr=%08x ip=%08x fp=%08x sp=%08x pc=%08x\n",$sl,$lr,$ip,$fp,$sp,$pc
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
23 printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g f7=%g\n",$f1,$f2,$f3,$f4,$f5,$f6,$f7
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
24 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
25 define sh
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
26 regs
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
27 x/20i $pc-36
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
28 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
29 define si
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
30 stepi
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
31 regs
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
32 x/1i $pc
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
33 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
34 define ni
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
35 nexti
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
36 regs
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
37 x/1i $pc
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
38 end
5a3b1b65c6a8 ARM self compile almost passed.
kono
parents:
diff changeset
39 b errmsg