From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: lazy-handler-dispatch and debug-on-error Date: 06 Dec 2003 11:57:19 +0000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070711917 12600 80.91.224.253 (6 Dec 2003 11:58:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2003 11:58:37 +0000 (UTC) Cc: Guile Development Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Dec 06 12:58:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASb4z-0001An-00 for ; Sat, 06 Dec 2003 12:58:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASc27-0001Jp-ON for guile-devel@m.gmane.org; Sat, 06 Dec 2003 07:59:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ASc1r-0001Jk-IK for guile-devel@gnu.org; Sat, 06 Dec 2003 07:59:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ASc1L-0001Dz-Sw for guile-devel@gnu.org; Sat, 06 Dec 2003 07:59:22 -0500 Original-Received: from [80.84.72.21] (helo=s1.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ASc1L-0001Dw-EN for guile-devel@gnu.org; Sat, 06 Dec 2003 07:58:51 -0500 Original-Received: from laruns.ossau.uklinux.net (bts-0234.dialup.zetnet.co.uk [194.247.48.234]) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id hB6BvMK25833; Sat, 6 Dec 2003 11:57:22 GMT Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1]) by laruns.ossau.uklinux.net (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id 15011DC4D4; Sat, 6 Dec 2003 11:57:19 +0000 (GMT) Original-To: djurfeldt@nada.kth.se In-Reply-To: Original-Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3105 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3105 >>>>> "Neil" == Neil Jerram writes: >>>>> "Mikael" == Mikael Djurfeldt writes: Mikael> The original design might have had something to do with Mikael> being able to cut the stack at a proper level in order to Mikael> get a nice backtrace printout. But this should have been Mikael> solved later by the introduction of start-stack. (You Mikael> still might want to check that stack cutting works after Mikael> your change.) Neil> Yes, I think I might have unintentionally broken this. I'll Neil> investigate ... Yes, you're quite right; my change did break this. I've undone that change and added the following comment. ;; Note that having just ;; `lazy-handler-dispatch' here is ;; connected with the mechanism that ;; produces a nice backtrace upon ;; error. If, for example, this is ;; replaced with (lambda args (apply ;; lazy-handler-dispatch args)), the ;; stack cutting (in save-stack) ;; goes wrong and ends up saving no ;; stack at all, so there is no ;; backtrace. lazy-handler-dispatch)) (As far as debug-on-error is concerned, I don't now think this is a good way to implement it anyway.) Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel