From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: PLEASE: debugging embedded guile code Date: 26 Apr 2003 20:12:54 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20030225093608.6a8935f8.dsmith@altustech.com> <3EAAB691.6AD935B5@veritas.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051384391 19719 80.91.224.249 (26 Apr 2003 19:13:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 19:13:11 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Apr 26 21:13:08 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 199V6h-00057f-00 for ; Sat, 26 Apr 2003 21:13:08 +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 199V7I-0004jv-05 for guile-user@m.gmane.org; Sat, 26 Apr 2003 15:13:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 199V6g-0004Ny-00 for guile-user@gnu.org; Sat, 26 Apr 2003 15:13:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 199V6b-00044b-00 for guile-user@gnu.org; Sat, 26 Apr 2003 15:13:04 -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 199V6a-0003zK-00; Sat, 26 Apr 2003 15:13:00 -0400 Original-Received: from laruns.ossau.uklinux.net (bts-0107.dialup.zetnet.co.uk [194.247.48.107]) by s1.uklinux.net (8.11.6p2/8.11.6) with ESMTP id h3QJCv112147; Sat, 26 Apr 2003 20:12:58 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (localhost [127.0.0.1])ESMTP id 723EBDC4D4; Sat, 26 Apr 2003 20:12:55 +0100 (BST) Original-To: Bruce Korb In-Reply-To: <3EAAB691.6AD935B5@veritas.com> Original-Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-cc: guile-user@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1837 gmane.lisp.guile.devel:2218 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1837 >>>>> "Bruce" == Bruce Korb writes: >> One thing I'm not sure I understand is why you want (or perhaps need) >> to do this lazy-catch in C rather than in Scheme, since it would be >> much easier in Scheme. Can you explain? Bruce> The need is to be able to point our clients to problems in the Bruce> Scheme code. We (or, at least, I) know where in our client's Bruce> input we are when we hand a string off to Guile for evaluation. Bruce> I'd like to be able to tell Guile what the current file name Bruce> and line number so that when it emits an error message, Guile Bruce> can refer to our client's source file. As it is, I have to Bruce> set an atexit routine. All it is able to tell is that Guile Bruce> called exit(3C) and it must now emit a generic "this is where Bruce> we were when Guile called exit" message: 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? Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user