2002-02-13 Martin M. Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Thu, 14 Feb 2002 07:24:54 +0000 (07:24 +0000)
committerMartin Hunt <hunt@redhat.com>
Thu, 14 Feb 2002 07:24:54 +0000 (07:24 +0000)
* stack.c (print_frame_info_base): When calling
print_frame_info_listing_hook, set current_source_symtab.

gdb/ChangeLog
gdb/stack.c

index 50a3dfcf62a09857e20ea766dc5411f72b9747fa..1b1e5bb310b3bf2ca8491a5292fd5e9bc2237356 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-13  Martin M. Hunt  <hunt@redhat.com>
+
+       * stack.c (print_frame_info_base): When calling 
+       print_frame_info_listing_hook, set current_source_symtab.
+
 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
index 147aad19a3f79dc232690c53bc7037b05fc101ef..68f16b653c3351976ee5dfaabb3b093114bca0a4 100644 (file)
@@ -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