From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24420 invoked from network); 18 Sep 2006 11:08:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Sep 2006 11:08:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 11739 invoked from network); 18 Sep 2006 11:08:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 11:08:11 -0000 Received: (qmail 14980 invoked by alias); 18 Sep 2006 11:08:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22736 Received: (qmail 14969 invoked from network); 18 Sep 2006 11:08:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Sep 2006 11:08:06 -0000 Received: (qmail 11415 invoked from network); 18 Sep 2006 11:08:06 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 18 Sep 2006 11:08:03 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 2A3ED70055; Mon, 18 Sep 2006 07:07:59 -0400 (EDT) Date: Mon, 18 Sep 2006 07:07:59 -0400 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: PATCH: functrace [was Re: funcstack and backtraces] Message-ID: <20060918110758.GA23984@scowler.net> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk References: <20060901191034.GA31335@scowler.net> <060904142643.ZM9472@torch.brasslantern.com> <20060917191418.GA22898@scowler.net> <060917153954.ZM32752@torch.brasslantern.com> <20060918033708.GA6522@scowler.net> <060917225733.ZM1116@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060917225733.ZM1116@torch.brasslantern.com> User-Agent: Mutt/1.5.13 (2006-08-11) > There just seems to be one more problem: It looks as if functrace and > funcstack are indexed in the opposite order from one another? Would it > not be better if they were in parallel? Or am I misreading this? They're supposed to be. > TRAPDEBUG prompt_bart_precmd precmd > prompt_bart_precmd:1 Src/zsh:2 Src/zsh:9 So Src/zsh:9 calls precmd, Src/zsh:2 (precmd?) calls prompt_bart_precmd, and prompt_bart_precmd:1 unwittingly calls TRAPDEBUG. Maybe grabbing the name of the previous function from the funcstack would be more useful.