From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5827 invoked from network); 11 Aug 2008 19:33:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Aug 2008 19:33:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 20473 invoked from network); 11 Aug 2008 19:33:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2008 19:33:25 -0000 Received: (qmail 3569 invoked by alias); 11 Aug 2008 19:33:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25433 Received: (qmail 3541 invoked from network); 11 Aug 2008 19:33:04 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Aug 2008 19:33:04 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id A6FBD809A180 for ; Mon, 11 Aug 2008 21:33:00 +0200 (CEST) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080811193259.SHLF777.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Mon, 11 Aug 2008 20:32:59 +0100 Received: from pws-pc.ntlworld.com ([81.107.40.67]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080811193259.LIHK19289.aamtaout02-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Mon, 11 Aug 2008 20:32:59 +0100 Received: from pws-pc (pws-pc [127.0.0.1]) by pws-pc.ntlworld.com (8.14.2/8.14.2) with ESMTP id m7BJWu1f008907 for ; Mon, 11 Aug 2008 20:32:56 +0100 Message-Id: <200808111932.m7BJWu1f008907@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Getting source file and line number of a function. In-Reply-To: Message from "Rocky Bernstein" of "Sat, 09 Aug 2008 21:11:15 EDT." <6cd6de210808091811pa8ddf92oc66a7a10d4cc3904@mail.gmail.com> Date: Mon, 11 Aug 2008 20:32:56 +0100 X-Virus-Scanned: ClamAV 0.92.1/8008/Mon Aug 11 19:34:45 2008 on bifrost X-Virus-Status: Clean "Rocky Bernstein" wrote: > Great! Let me know when code is committed into CVS which includes > tracking source calls, and I'll revise the zshdb code then. > > Ditto for instruction skipping and/or showing the command to be run. I've committed the source code tracing, but I decided "funcsourcetrace" was a better name than "funcfiletrace", since "file" doesn't really distinguish the purpose of the new variable. I've added a test and fixed a couple of additional bugs. The test is fairly simple and it's quite possible that extending it would reveal further problems. The instruction skipping using "setopt ERR_EXIT" is also there. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/