From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12142 invoked by alias); 16 Apr 2007 11:37:00 -0000 Received: (qmail 12134 invoked by uid 22791); 16 Apr 2007 11:37:00 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Apr 2007 12:36:58 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id D48FE4B267; Mon, 16 Apr 2007 06:36:56 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id B04C74B262; Mon, 16 Apr 2007 06:36:56 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HdPVw-0007Dx-1v; Mon, 16 Apr 2007 07:36:56 -0400 Date: Mon, 16 Apr 2007 11:37:00 -0000 From: Daniel Jacobowitz To: Kalpana Ramamurthy Cc: gdb@sourceware.org Subject: Re: Why does gdb print a complete stack trace even after switching to other frames ? Message-ID: <20070416113655.GA27755@caradoc.them.org> Mail-Followup-To: Kalpana Ramamurthy , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00104.txt.bz2 On Mon, Apr 16, 2007 at 11:26:42AM +0000, Kalpana Ramamurthy wrote: > Hello, > > Even after switching frames using "frame ", the backtrace prints > a complete backtrace from 0 to the oldest frame. Shouldn't the backtrace be > from the > switched frame to the oldest frames instead of from the 0'th frame ? No, why should it? Otherwise if you wanted to go down (towards frame 0), you would never know which frame you wanted. -- Daniel Jacobowitz CodeSourcery