nice test case.

> % 8c x.c
> 8c 98: suicide: sys: trap: fault read addr=0x0 pc=0x0003712f

the reason "out of fixed registers" is not output is that Bprint
is used by diag.  abort() does allow bio buffers to be dumped,
and doesn't seem useful.

here's the 9atom solution:

; 9diff txt.c
/n/sources/plan9/sys/src/cmd/8c/txt.c:310,317 - txt.c:310,316
                for(i=D_AX; i<=D_DI; i++)
                        if(reg[i] == 0)
                                goto out;
-               diag(tn, "out of fixed registers");
- abort();
+               fatal(tn, "out of fixed registers");
                goto err;
  
        case TFLOAT:

- erik

Reply via email to