Simplify tui_source_window_base::maybe_update method
[deliverable/binutils-gdb.git] / gdb / tui / tui-stack.c
index 7803b9538ccc3c4be240b5b735698ac400a5dcad..4f6fe8ebdaf177216e51e48d39e93b26245e3321 100644 (file)
@@ -341,9 +341,13 @@ tui_show_frame_info (struct frame_info *fi)
       if (!locator_changed_p)
        return 0;
 
+      /* find_frame_sal does not always set PC, but we want to ensure
+        that it is available in the SAL.  */
+      sal.pc = pc;
+
       for (struct tui_source_window_base *win_info : tui_source_windows ())
        {
-         win_info->maybe_update (fi, sal, locator->line_no, locator->addr);
+         win_info->maybe_update (fi, sal);
          win_info->update_exec_info ();
        }
 
This page took 0.037325 seconds and 4 git commands to generate.