aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-08-29 19:59:35 +0000
committerKeith Seitz <keiths@redhat.com>2002-08-29 19:59:35 +0000
commit66609862575ac6e46dc1040bd9e58b3153a1355e (patch)
tree8ca9be7c2ff41bd030b57afeafcde4da4fb3ff27 /gdb/stack.c
parent7ede505aeff82ab60a3a1deb83efec56b65a9d48 (diff)
downloadgdb-66609862575ac6e46dc1040bd9e58b3153a1355e.zip
gdb-66609862575ac6e46dc1040bd9e58b3153a1355e.tar.gz
gdb-66609862575ac6e46dc1040bd9e58b3153a1355e.tar.bz2
* stack.c (print_frame_info_base): Always set current_source_symtab
and current_source_line.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 23ca3df..30ebc09 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -398,6 +398,11 @@ print_frame_info_base (struct frame_info *fi, int level, int source, int args)
print_frame (fi, level, source, args, sal);
source_print = (source == SRC_LINE || source == SRC_AND_LOC);
+ if (sal.symtab)
+ {
+ current_source_symtab = sal.symtab;
+ current_source_line = sal.line;
+ }
if (source_print && sal.symtab)
{
@@ -410,10 +415,7 @@ 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);
- current_source_symtab = sal.symtab;
- }
+ print_frame_info_listing_hook (sal.symtab, sal.line, sal.line + 1, 0);
else
{
/* We used to do this earlier, but that is clearly