backtrace changes current source location

Daniel Jacobowitz drow@false.org
Wed Oct 27 17:40:00 GMT 2004


On Wed, Oct 27, 2004 at 01:34:09PM -0400, Andrew Cagney wrote:
> Felix Lee wrote:
> >patch for
> >    http://sources.redhat.com/ml/gdb/2004-10/msg00414.html
> >
> >gdb/ChangeLog
> >2004-10-26  Felix Lee  <felix+log1@specifixinc.com>
> >
> >        * stack.c (backtrace_command_1): Backtrace shouldn't
> >        change current source location.
> 
> Felix, can you find out where current_sal is being trashed?  GDB's 
> trying to get away from all this global state - the code at that level 
> shouldn't need to meddle with current_sal.

If you follow the link in his message above, Keith introduced it in
2002 - print_frame_info_base.

-- 
Daniel Jacobowitz



More information about the Gdb-patches mailing list