From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21108 invoked by alias); 27 Jun 2006 23:10:56 -0000 Received: (qmail 21018 invoked by uid 22791); 27 Jun 2006 23:10:55 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Jun 2006 23:10:50 +0000 Received: from kahikatea.snap.net.nz (p474-tnt1.snap.net.nz [202.124.111.220]) by viper.snap.net.nz (Postfix) with ESMTP id 33FC176E5F4; Wed, 28 Jun 2006 11:10:48 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id A94D01D3550; Wed, 28 Jun 2006 11:09:45 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17569.47799.735812.759914@kahikatea.snap.net.nz> Date: Thu, 29 Jun 2006 03:48:00 -0000 To: Andrew STUBBS Cc: Cameron Stone , gdb@sourceware.org Subject: Re: expanding backtrace In-Reply-To: <44A14571.20003@st.com> References: <200606271825.20501.camerons@cse.unsw.edu.au> <44A14571.20003@st.com> X-Mailer: VM 7.19 under Emacs 22.0.50.23 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00256.txt.bz2 > You could write something like > > while $pc != 0 I don't think that works. > or > > while $sp <= $topofmem > > It depends how your backtraces end. If you mean: (gdb) start ... (gdb) set $topofmem=$sp and use "$sp < $topofmem" for the loop condition, then that looks like a good idea. -- Nick http://www.inet.net.nz/~nickrob