This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: backtrace/1969: backtrace changes currently selected source line
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 12 Jul 2005 16:08:01 -0000
- Subject: Re: backtrace/1969: backtrace changes currently selected source line
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR backtrace/1969; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: jiflgdb@jifvik.org
Cc: gdb-gnats@sources.redhat.com
Subject: Re: backtrace/1969: backtrace changes currently selected source line
Date: Tue, 12 Jul 2005 12:01:57 -0400
On Tue, Jul 12, 2005 at 03:51:23PM -0000, jiflgdb@jifvik.org wrote:
> The 'backtrace' command affects the source line chosen for 'list' and
> others. This means that doing a list after a backtrace returns the
> source line context of the outermost frame. I understood 'backtrace'
> was not meant to change the currently selected source line.
>
> The issue seems to be that stack.c:backtrace_command() calls
> stack.c:print_frame_info() which calls
> set_current_source_symtab_and_line().
Have you tried this in CVS HEAD? I think it was fixed.
--
Daniel Jacobowitz
CodeSourcery, LLC