]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
authorStephane Carrez <stcarrez@nerim.fr>
Sat, 24 Aug 2002 15:25:25 +0000 (15:25 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sat, 24 Aug 2002 15:25:25 +0000 (15:25 +0000)
use tuiShowFrameInfo instead of tuiSetLocatorContent.
* tuiLayout.h (showLayout): Remove.
* tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
(_showSourceDisassemCommand): Likewise.
(showLayout): Make it static.
(lastLayout): Remove.

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

index 1223a47c4c54e93603725f112b3e3f0d2f906dc8..01ac7d98b21d5affa3293983be4265c1fd5ab37a 100644 (file)
@@ -1,3 +1,13 @@
+2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * tui.c (tui_enable): Use tuiSetLayout instead of showLayout and
+       use tuiShowFrameInfo instead of tuiSetLocatorContent.
+       * tuiLayout.h (showLayout): Remove.
+       * tuiLayout.c (_showSourceOrDisassemAndCommand): Remove unused locals.
+       (_showSourceDisassemCommand): Likewise.
+       (showLayout): Make it static.
+       (lastLayout): Remove.
+
 2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>
 
        * tuiSourceWin.c (tui_show_source_line): New function.
index 6b132b7332c1868a9e2ad89895d6138467a18a43..33232a50cdbeebfb7835fa6bb33c4bf3da8c673d 100644 (file)
@@ -237,8 +237,8 @@ tui_enable (void)
       setTermWidthTo (COLS);
       def_prog_mode ();
 
-      tuiSetLocatorContent (0);
-      showLayout (SRC_COMMAND);
+      tuiShowFrameInfo (0);
+      tuiSetLayout (SRC_COMMAND, TUI_UNDEFINED_REGS);
       tuiSetWinFocusTo (srcWin);
       keypad (cmdWin->generic.handle, TRUE);
       wrefresh (cmdWin->generic.handle);
index 7db2b707a7c15ddda2c14a9c9479455a53e65cce..c3eae72c3c545d4c5f65ea779813dcd980a0d0a1 100644 (file)
@@ -58,7 +58,7 @@
 /*******************************
 ** Static Local Decls
 ********************************/
-
+static void showLayout (TuiLayoutType);
 static void _initGenWinInfo (TuiGenWinInfoPtr, TuiWinType, int, int, int, int);
 static void _initAndMakeWin (Opaque *, TuiWinType, int, int, int, int, int);
 static void _showSourceOrDisassemAndCommand (TuiLayoutType);
@@ -86,20 +86,8 @@ static void _tuiHandleXDBLayout (TuiLayoutDefPtr);
 
 #define LAYOUT_USAGE     "Usage: layout prev | next | <layout_name> \n"
 
-/***************************************
-** Static Local Data
-***************************************/
-static TuiLayoutType lastLayout = UNDEFINED_LAYOUT;
-
-/***************************************
-** PUBLIC FUNCTIONS
-***************************************/
-
-/*
-   ** showLayout().
-   **        Show the screen layout defined
- */
-void
+/* Show the screen layout defined.  */
+static void
 showLayout (TuiLayoutType layout)
 {
   TuiLayoutType curLayout = currentLayout ();
@@ -789,8 +777,6 @@ _showDisassemCommand (void)
 static void
 _showSourceDisassemCommand (void)
 {
-  TuiGenWinInfoPtr locator = locatorWinInfoPtr ();
-
   if (currentLayout () != SRC_DISASSEM_COMMAND)
     {
       int cmdHeight, srcHeight, asmHeight;
@@ -1083,7 +1069,6 @@ _showSourceOrDisassemAndCommand (TuiLayoutType layoutType)
   if (currentLayout () != layoutType)
     {
       TuiWinInfoPtr *winInfoPtr;
-      int areaLeft;
       int srcHeight, cmdHeight;
       TuiGenWinInfoPtr locator = locatorWinInfoPtr ();
 
index 8646318f1dac07fb4146c776ef191ae1c3ead310..f6b0ed79c6878f89a4ed002e0825ac5157ab9e18 100644 (file)
@@ -1,5 +1,5 @@
 /* TUI layout window management.
-   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    Contributed by Hewlett-Packard Company.
 
    This file is part of GDB.
@@ -22,7 +22,6 @@
 #ifndef TUI_LAYOUT_H
 #define TUI_LAYOUT_H
 
-extern void showLayout (TuiLayoutType);
 extern void tuiAddWinToLayout (TuiWinType);
 extern int tuiDefaultWinHeight (TuiWinType, TuiLayoutType);
 extern int tuiDefaultWinViewportHeight (TuiWinType, TuiLayoutType);