This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Why does gdb print a complete stack trace even after switching to other frames ?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kalpana Ramamurthy <kal_pana at hotmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 16 Apr 2007 07:36:55 -0400
- Subject: Re: Why does gdb print a complete stack trace even after switching to other frames ?
- References: <BAY144-F17D07694641D81ABD45D91E86D0@phx.gbl> <BAY144-F12B8EB1D84B17EC573D9AFE8520@phx.gbl>
On Mon, Apr 16, 2007 at 11:26:42AM +0000, Kalpana Ramamurthy wrote:
> Hello,
>
> Even after switching frames using "frame <frame number>", 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