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,gmane.lisp.guile.user Subject: Re: PLEASE: debugging embedded guile code Date: 27 Apr 2003 21:49:53 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <20030225093608.6a8935f8.dsmith@altustech.com> <3EAAB691.6AD935B5@veritas.com> <3EAAE877.7140ECB6@veritas.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051476978 25447 80.91.224.249 (27 Apr 2003 20:56:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2003 20:56:18 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Apr 27 22:56:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199tC3-0006c8-00 for ; Sun, 27 Apr 2003 22:56:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199tAx-00051B-05 for guile-devel@m.gmane.org; Sun, 27 Apr 2003 16:55:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199tAc-0004ny-00 for guile-devel@gnu.org; Sun, 27 Apr 2003 16:54:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199tA7-00042m-00 for guile-devel@gnu.org; Sun, 27 Apr 2003 16:54:16 -0400 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199t9b-0003hT-00; Sun, 27 Apr 2003 16:53:43 -0400 Original-Received: from laruns.ossau.uklinux.net (bts-0192.dialup.zetnet.co.uk [194.247.48.192]) by s1.uklinux.net (8.11.6p2/8.11.6) with ESMTP id h3RKrdJ14200; Sun, 27 Apr 2003 21:53:40 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1])ESMTP id 915D0DC4D3; Sun, 27 Apr 2003 21:49:55 +0100 (BST) Original-To: Bruce Korb In-Reply-To: <3EAAE877.7140ECB6@veritas.com> Original-Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-cc: guile-user@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2222 gmane.lisp.guile.user:1841 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2222 >>>>> "Bruce" == Bruce Korb writes: Bruce> Neil Jerram wrote: >> Now you've really lost me, I'm afraid. Why don't you use a catch, >> either in Scheme or in C, to catch the error? Bruce> Yes, I can catch it. Now what do I print out? I know the Bruce> file and line where the scheme text started, but I don't Bruce> know what Guile's objections are and I don't know how far Bruce> into the text the problem text was. OK. (I don't see what this has to do with atexit, but never mind that.) The current situation is that: - Guile's objection is encoded: - primarily in the throw key (a symbol) that is the first arg passed to the catch handler, e.g. 'misc-error - secondarily in the remaining throw args, in a way which is key-dependent and very poorly documented - the location where the problem arose is not supplied by default, but can be found out by capturing the current stack - (make-stack #t) - in a lazy-catch handler. My impression from various emails is that there may be issues with this model, so my purpose here is to explore whether there are issues and, if so, to address them. So, given this description, can you be more precise about which (if any) parts of it are causing you trouble? Thanks, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel