]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/tui/tui-winsource.h
Move contents of tui_show_frame_info to new method
[thirdparty/binutils-gdb.git] / gdb / tui / tui-winsource.h
index abb7ea34816bf6b992f31abba99fa5e9724b355f..f2fd1eb1b0bf0b6df8c5d0ae9fa8c2a9a4411d72 100644 (file)
@@ -23,6 +23,7 @@
 #define TUI_TUI_WINSOURCE_H
 
 #include "tui/tui-data.h"
+#include "symtab.h"
 
 /* Flags to tell what kind of breakpoint is at current line.  */
 enum tui_bp_flag
@@ -116,6 +117,11 @@ public:
 
   void update_exec_info ();
 
+  /* Update the window to display the given location.  Does nothing if
+     the location is already displayed.  */
+  virtual void maybe_update (struct frame_info *fi, symtab_and_line sal,
+                            int line_no, CORE_ADDR addr) = 0;
+
   /* Does the locator belong to this window?  */
   bool m_has_locator = false;
   /* Execution information window.  */