diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 12:28:33 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-08-24 12:28:33 +0000 |
commit | bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267 (patch) | |
tree | 7dcfd2641e222e0dbc6b5d8d032fa1fcf10c5ec4 /gdb/tui/tuiLayout.c | |
parent | e9ae5755d3e70272c36bf5a1fefcdb3010035925 (diff) | |
download | gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.zip gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.tar.gz gdb-bc712bbf17bd3c4ead9c0cacc917cd58f7cc5267.tar.bz2 |
* tuiSourceWin.c (tui_show_source_line): New function.
(tuiShowSourceContent): Call it and avoid clearing the window before
redrawing it.
(tuiClearAllSourceWinsContent): Remove.
* tuiSourceWin.h (tuiClearAllSourceWinsContent): Don't declare.
* tuiWin.h (tuiClearWinFocus, tuiClearWinFocusFrom): Don't declare.
* tuiWin.c (tuiClearWinFocus, tuiClearWinFocusFrom): Remove.
(tuiRefreshAll): Don't clear the window.
(_makeVisibleWithNewHeight): Don't clear locator line.
(tuiResizeAll): Remove unused locals.
(_tuiAdjustWinHeights): Likewise.
(_makeInvisibleAndSetNewHeight): Likewise.
(_newHeightOk): Likewise.
* tuiLayout.c (showLayout): Don't clear source windows.
(tuiSetLayout): Don't clear the window.
(_initAndMakeWin): Likewise for status line.
* tuiGeneralWin.c (makeVisible): Don't clear or refresh the window.
(makeWindow): Likewise.
(tuiClearWin): Remove.
* tuiGeneralWin.h (tuiClearWin): Don't declare.
Diffstat (limited to 'gdb/tui/tuiLayout.c')
-rw-r--r-- | gdb/tui/tuiLayout.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c index aa98882..7db2b70 100644 --- a/gdb/tui/tuiLayout.c +++ b/gdb/tui/tuiLayout.c @@ -111,7 +111,6 @@ showLayout (TuiLayoutType layout) ** should free the content and reallocate on next display of ** source/asm */ - tuiClearAllSourceWinsContent (NO_EMPTY_SOURCE_PROMPT); freeAllSourceWinsContent (); clearSourceWindows (); if (layout == SRC_DATA_COMMAND || layout == DISASSEM_DATA_COMMAND) @@ -146,9 +145,7 @@ showLayout (TuiLayoutType layout) } } } - - return; -} /* showLayout */ +} /* @@ -195,8 +192,6 @@ tuiSetLayout (TuiLayoutType layoutType, { if (newLayout != curLayout) { - if (winWithFocus != cmdWin) - tuiClearWinFocus (); showLayout (newLayout); /* ** Now determine where focus should be @@ -291,7 +286,7 @@ tuiSetLayout (TuiLayoutType layoutType, status = TUI_FAILURE; return status; -} /* tuiSetLayout */ +} /* ** tuiAddWinToLayout(). @@ -1033,13 +1028,9 @@ _initAndMakeWin (Opaque * winInfoPtr, TuiWinType winType, ((TuiWinInfoPtr) opaqueWinInfo)->canHighlight = TRUE; } makeWindow (generic, boxIt); - if (winType == LOCATOR_WIN) - tuiClearLocatorDisplay (); } *winInfoPtr = opaqueWinInfo; - - return; -} /* _initAndMakeWin */ +} /* |