backtrace/1969: backtrace changes currently selected source line

Daniel Jacobowitz drow@false.org
Tue Jul 12 16:08:00 GMT 2005


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



More information about the Gdb-prs mailing list