aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2002-02-14 07:24:54 +0000
committerMartin Hunt <hunt@redhat.com>2002-02-14 07:24:54 +0000
commit76e42a4f45300b982d450b2711889f3783fdc589 (patch)
treebc1bc6773d91154ac7394781b2b5ac8229773bf0 /gdb/stack.c
parent676a04427af557271ab2b08226de277ce45a7109 (diff)
downloadgdb-76e42a4f45300b982d450b2711889f3783fdc589.zip
gdb-76e42a4f45300b982d450b2711889f3783fdc589.tar.gz
gdb-76e42a4f45300b982d450b2711889f3783fdc589.tar.bz2
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.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 147aad1..68f16b6 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