From: Martin Hunt Date: Thu, 14 Feb 2002 07:24:54 +0000 (+0000) Subject: 2002-02-13 Martin M. Hunt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76e42a4f45300b982d450b2711889f3783fdc589;p=binutils-gdb.git 2002-02-13 Martin M. Hunt * stack.c (print_frame_info_base): When calling print_frame_info_listing_hook, set current_source_symtab. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 50a3dfcf62a..1b1e5bb310b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-02-13 Martin M. Hunt + + * stack.c (print_frame_info_base): When calling + print_frame_info_listing_hook, set current_source_symtab. + 2002-02-14 Daniel Jacobowitz * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS, diff --git a/gdb/stack.c b/gdb/stack.c index 147aad19a3f..68f16b653c3 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -400,7 +400,10 @@ print_frame_info_base (struct frame_info *fi, int level, int source, int args) if (!done) { if (print_frame_info_listing_hook) - print_frame_info_listing_hook (sal.symtab, sal.line, sal.line + 1, 0); + { + print_frame_info_listing_hook (sal.symtab, sal.line, sal.line + 1, 0); + current_source_symtab = sal.symtab; + } else { /* We used to do this earlier, but that is clearly