diff .gdbinit.mips @ 267:e7ab23c992e5

static double define fix
author kono
date Mon, 17 May 2004 11:41:51 +0900
parents
children e1a96bdbe527
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gdbinit.mips	Mon May 17 11:41:51 2004 +0900
@@ -0,0 +1,38 @@
+tb main
+# run  -s -ob00.s test/basic.c
+# run  -s -ob00.s mc-parse.c
+run -s test/code-gen-all.c
+define regs 
+printf "pc =%08x fp =%08x r2 =%08x r3 =%08x r4= %08x r5= %08x\n",$pc,$fp,$v0,$v1,$a0,$a1
+printf "r5 =%08x r6 =%08x r7 =%08x r8 =%08x r9 =%08x r10=%08x\n",$a2,$a3,$t0,$t1,$t2,$t3
+end
+define fregs 
+printf "f0=%g f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f0,$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 fp =%08x r2 =%08x r3 =%08x r4= %08x r5= %08x\n",$pc,$fp,$v0,$v1,$a0,$a1
+printf "r6=%08x r7=%08x r8=%08x r9=%08x r10=%08x\n",$a2,$a3,$t0,$t1,$t2
+printf "r11=%08x r12=%08x r14=%08x r15=%08x r16=%08x\n",$t3,$t4,$t5,$t6,$t7
+printf "r17=%08x r18=%08x r19=%08x r20=%08x r21=%08x\n",$s0,$s1,$s2,$s3,$s4
+printf "r22=%08x r23=%08x r24=%08x r25=%08x r26=%08x\n",$s5,$s6,$s7,$t8,$jp
+printf "r27=%08x r28=%08x r29=%08x r30=%08x r31=%08x\n",$k0,$k1,$gp,$sp,$ra
+printf "f0=%g f1=%g f2=%g f3=%g f4=%g f5=%g f6=%g\n",$f0,$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