* tui.h (tui_show_assembly): Declare.
authorStephane Carrez <stcarrez@nerim.fr>
Sat, 21 Jul 2001 22:24:44 +0000 (22:24 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sat, 21 Jul 2001 22:24:44 +0000 (22:24 +0000)
(tui_is_window_visible): Declare.
* tui.c (tui_show_assembly): New function.
(tui_is_window_visible): New function.
(tui_get_command_dimension): New function.

gdb/tui/ChangeLog
gdb/tui/tui.c
gdb/tui/tui.h

index f34da3deaf38f25ba4f5a5cdf09d309559ec1154..f00e8389ceb8f4f7cc4d89f37affd680b69cb397 100644 (file)
@@ -1,3 +1,11 @@
+2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * tui.h (tui_show_assembly): Declare.
+       (tui_is_window_visible): Declare.
+       * tui.c (tui_show_assembly): New function.
+       (tui_is_window_visible): New function.
+       (tui_get_command_dimension): New function.
+
 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
 
        * tuiWin.c (tuiRefreshAll): Use clearok to force a refresh.
index 370afb43bebbe9ccb55f9b568c28d9b828eb37b6..6c1dea0d1e6c4f980de377d2ae8a8299aa093fe3 100644 (file)
@@ -385,3 +385,35 @@ _tuiReset (void)
 }                              /* _tuiReset */
 #endif
 
+
+void
+tui_show_assembly (CORE_ADDR addr)
+{
+  tuiAddWinToLayout (DISASSEM_WIN);
+  tuiUpdateSourceWindowsWithAddr (addr);
+}
+
+int
+tui_is_window_visible (TuiWinType type)
+{
+  if (tui_version == 0)
+    return 0;
+
+  if (winList[type] == 0)
+    return 0;
+  
+  return winList[type]->generic.isVisible;
+}
+
+int
+tui_get_command_dimension (int *width, int *height)
+{
+  if (!tui_version || !m_winPtrNotNull (cmdWin))
+    {
+      return 0;
+    }
+  
+  *width = cmdWin->generic.width;
+  *height = cmdWin->generic.height;
+  return 1;
+}
index afcbe8a932ae73847355772c8afec06ae32552c6..c26802bc6ab271eb1231f1348cb3780936e66c9e 100644 (file)
@@ -92,6 +92,9 @@ TuiPoint, *TuiPointPtr;
 /* tui.c */
 extern void tuiFree (char *);
 extern CORE_ADDR tuiGetLowDisassemblyAddress (CORE_ADDR, CORE_ADDR);
+extern void tui_show_assembly (CORE_ADDR addr);
+extern int tui_is_window_visible (TuiWinType type);
+extern int tui_get_command_dimension (int *width, int *height);
 
 /* Initialize readline and configure the keymap for the switching
    key shortcut.  */
This page took 0.026028 seconds and 4 git commands to generate.