view .gdbinit @ 577:7e0076617c76

env switch continue..
author kono
date Sun, 15 Jan 2006 18:28:39 +0900
parents aad312f61654
children 421be86892b3
line wrap: on
line source

define regs 
printf "pc =%08x lr =%08x r0 =%08x r1 =%08x r3= %08x r4= %08x\n",$pc,$lr,$r0,$r1,$r3,$r4
printf "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
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 "r10=%08x r11=%08x r12=%08x r13=%08x r14=%08x r15=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
printf "r16=%08x r17=%08x r18=%08x r19=%08x r20=%08x r21=%08x\n",$r10,$r11,$r12,$r13,$r14,$r15
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
printf "f20=%g f21=%g f22=%g f23=%g f24=%g f25=%g\n",$f20,$f21,$f22,$f23,$f24,$f25
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
tb main
# run  -s test/inline.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/const.c
# run  -s test/basic.c
# run -s test/code-gen-all.c
# run -s test/tmp7.c
# run -s test/inline.c
# run -s test/code-gen-inline.c
# run -s -DINLINE=inline test/basic.c
# run -s test/too-long-argument.c
# run -s test/strinit.c
# run -DINLINE=inline test/scope.c
# run -DINLINE=inline test/code-gen-all.c
# run -DINLINE=inline test/bitfield1.c
# run -s test/linux_kernel.c.--- 
# run -s test/stralign.c
# run -s test/putenemy.c
# run -s test/func_conv_err.c
# run -DINLINE=inline test/tmp7.c
# run -DINLINE=inline test/code-gen-all.c
run -s throw.c