Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!mikros!mwtech!joerg From: joerg@mwtech.UUCP (Joerg Werner) Newsgroups: comp.os.minix Subject: c68 has a switch bug Message-ID: <1087@mwtech.UUCP> Date: 27 Feb 91 13:25:13 GMT Reply-To: joerg@mwtech.UUCP (Joerg Werner) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 48 I use c68 all the time and I like it. But after I compiled the complete Minix-ST 1.5 operating system, mdb (the Minix debugger) doesn't work any longer. Please have a look at the following programm: testswitch(i) { printf("%2d ", i); switch(i) { /* such a switch occurs in kernel/system.c do_trace() */ case -1: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 9: printf(":-)\n"); break; default: printf(":-(\n"); break; } } main() { testswitch(-1); } You and I expect that the result would be -1 :-) but the result is -1 :-( (BTW: ACK handles this right!) Is this problem known and is there a fix? Ciao, Joerg PS: Which programs must be compiled again, if the process-struct in the kernel is changed? The well-known ones are `ps' and `mdb'. Any others? -- Joerg Werner, email: joerg@mwtech.UUCP, voice: 49-(0)6151-37 33 66