* gdb.base/maint.exp: Only dump symbols from one source file
[deliverable/binutils-gdb.git] / gdb / tui / tuiSource.c
index 0d59bf06b058993abe2b274ba6c2739e355102c7..ceccd64532e5cbd0df19974945428aab5d4f5872 100644 (file)
@@ -337,11 +337,12 @@ tuiVerticalSourceScroll (TuiScrollDirection scrollDirection,
       TuiLineOrAddress l;
       struct symtab *s;
       TuiWinContent content = (TuiWinContent) srcWin->generic.content;
+      struct symtab_and_line cursal = get_current_source_symtab_and_line ();
 
-      if (current_source_symtab == (struct symtab *) NULL)
-       s = find_pc_symtab (selected_frame->pc);
+      if (cursal.symtab == (struct symtab *) NULL)
+       s = find_pc_symtab (deprecated_selected_frame->pc);
       else
-       s = current_source_symtab;
+       s = cursal.symtab;
 
       if (scrollDirection == FORWARD_SCROLL)
        {
This page took 0.025174 seconds and 4 git commands to generate.