This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: backtrace changes current source location
Andrew Cagney <cagney@gnu.org>:
> Should:
> (gdb) info frame 5
> change things to frame 5's sal?
it doesn't do that now. it's only when a line like
#4 0x08048392 in main () at z1.c:8
gets printed, which happens at breakpoints, or when the user
selects a frame with 'frame', and so forth.
> MI and/or CLI should locally determine current-sal, and pass it down to
> print_frame_info.
ok, so an alternate implementation is to add a function
set_current_sal_to_frame(), and most places that call
print_frame_info() will also call set_current_sal_to_frame().
does that sound acceptable?
that will be a slightly larger patch.
--