changeset 54:1a6b6a7bdca6

fact-a
author kono
date Tue, 18 Feb 2003 20:34:46 +0900
parents 64a4e3789fd2
children 94564b45c4f3
files .gdbinit mc-nop-386.c test/arg.c
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/.gdbinit	Tue Feb 18 20:14:19 2003 +0900
+++ b/.gdbinit	Tue Feb 18 20:34:46 2003 +0900
@@ -14,4 +14,4 @@
 end
 b error
 b errmsg
-r -s test/arg.c
+r -s test/fact-a.c
--- a/mc-nop-386.c	Tue Feb 18 20:14:19 2003 +0900
+++ b/mc-nop-386.c	Tue Feb 18 20:34:46 2003 +0900
@@ -1049,9 +1049,9 @@
 #if 0
 printf("# ovedrrap source %d t0 %d t1 %d\n",car(car(t)),t0,t1);
 printf("# ovedrrap target %d s0 %d s1 %d\n",car(car(source)),s0,s1);
-printf("# ovedrrap   equal = %d\n",((t0<=s0&&s0<=t1)||(t0<=s1&&s1<=t1)));
+printf("# ovedrrap   equal = %d\n",((t0<=s0&&s0<t1)||(t0<s1&&s1<=t1)));
 #endif
-	    if((t0<=s0&&s0<=t1)||(t0<=s1&&s1<=t1)) return 1;
+	    if((t0<=s0&&s0<t1)||(t0<s1&&s1<=t1)) return 1;
 	}
     }
     return 0;
--- a/test/arg.c	Tue Feb 18 20:14:19 2003 +0900
+++ b/test/arg.c	Tue Feb 18 20:34:46 2003 +0900
@@ -21,13 +21,20 @@
     printf("args: %d %d %d %d %d : %x %x\n",
 	args0.a0,args0.a1,args0.a2,args0.a3,args0.a4,
     exit1,env);
-    goto (*exit1)(0),env;
+    goto (*exit1)(321),env;
 }
 
 
+int main1(int n)
+{
+    goto arg1(0,1,2,3,4,return,environment);
+    return n;
+}
+
 int main( int ac, char *av[])
 {
     int n;
-    goto arg1(0,1,2,3,4,return,environment);
+    n = main1(123);
+    printf("321=%d\n",n);
 }