From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sat, 7 Sep 2013 09:07:45 -0400 To: 9fans@9fans.net Message-ID: <765191be023ea40306e83c4aad3d2426@kw.quanstro.net> In-Reply-To: <20130907111907.GA6233@dinah> References: <399e128253888fad1131901a3e8b6672@kw.quanstro.net> <20130907111907.GA6233@dinah> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Building Go/386 Topicbox-Message-UUID: 7b9cd78e-ead8-11e9-9d60-3106f5b1d025 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