Mercurial > hg > CbC > old > device
diff .gdbinit.arm @ 410:5a3b1b65c6a8
ARM self compile almost passed.
author | kono |
---|---|
date | Tue, 19 Oct 2004 16:01:15 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.gdbinit.arm Tue Oct 19 16:01:15 2004 +0900 @@ -0,0 +1,39 @@ +tb main +# run -s test/arg.c +# run -s mc-parse.c +# run -s mc-codegen.c +# run -s nkf203/nkf.c +# run -s -ob01.s mc-switch.c +# run -s l.c +run -s test/bitfield.c +# run -s test/basic.c +# run -s test/code-gen-all.c +define regs +printf "pc=%08x lr=%08x r0=%08x r1=%08x r2=%08x r3=%08x r4=%08x\n",$pc,$lr,$r0,$r1,$r2,$r3,$r4 +printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9 +end +define fregs +printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f1,$f2,$f3,$f4,$f5,$f6 +printf "f10=%g f11=%g f12=%g f13=%g f14=%g f15=%g\n",$f10,$f11,$f12,$f13,$f14,$f15 +end +define allreg +printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4 +printf "r5=%08x r6=%08x r7=%08x r8=%08x r9=%08x\n",$r5,$r6,$r7,$r8,$r9 +printf "sl=%08x lr=%08x ip=%08x fp=%08x sp=%08x pc=%08x\n",$sl,$lr,$ip,$fp,$sp,$pc +printf "f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g f7=%g\n",$f1,$f2,$f3,$f4,$f5,$f6,$f7 +end +define sh +regs +x/20i $pc-36 +end +define si +stepi +regs +x/1i $pc +end +define ni +nexti +regs +x/1i $pc +end +b errmsg