summaryrefslogtreecommitdiff
path: root/gdb/tui/tuiLayout.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-07-20 22:26:54 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-07-20 22:26:54 +0000
commite03bec961ff1cf1eaf60908ef7209348c19587f2 (patch)
treebf84cf4c26a84b8552c40cc9da9fa3db2db8a2a5 /gdb/tui/tuiLayout.c
parent86550eb4be545450ce5457e49ebd610e7bee48ec (diff)
downloadgdb-e03bec961ff1cf1eaf60908ef7209348c19587f2.tar.gz
* tuiSourceWin.h: Remove unused declarations.
* tuiSourceWin.c (tui_vUpdateSourceWindowsWithAddr): Remove. (tui_vUpdateSourceWindowsWithLine): Remove. (tui_vAllSetHasBreakAt): Remove. * tuiLayout.h (tui_set_layout): Declare. (tui_vSetLayoutTo): Remove. (tui_vAddWinToLayout): Remove. * tuiLayout.c (_tuiLayout_command): Call tui_enable() to force TUI. (_tuiToggleLayout_command): Remove. (_tuiToggleSplitLayout_command): Remove. (_tuiLayout_command): Remove. (tui_vSetLayoutTo): Remove. (tui_vAddWinToLayout): Remove. * tuiDataWin.h (tui_vCheckDataValues): Remove. * tuiDataWin.c (tui_vCheckDataValues): Remove.
Diffstat (limited to 'gdb/tui/tuiLayout.c')
-rw-r--r--gdb/tui/tuiLayout.c45
1 files changed, 9 insertions, 36 deletions
diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c
index 74c9747036d..3626e52599d 100644
--- a/gdb/tui/tuiLayout.c
+++ b/gdb/tui/tuiLayout.c
@@ -55,9 +55,7 @@ static TuiLayoutType _nextLayout (void);
static TuiLayoutType _prevLayout (void);
static void _tuiLayout_command (char *, int);
static void _tuiToggleLayout_command (char *, int);
-static void _tui_vToggleLayout_command (va_list);
static void _tuiToggleSplitLayout_command (char *, int);
-static void _tui_vToggleSplitLayout_command (va_list);
static CORE_ADDR _extractDisplayStartAddr (void);
static void _tuiHandleXDBLayout (TuiLayoutDefPtr);
@@ -275,23 +273,6 @@ tuiSetLayout (TuiLayoutType layoutType,
return status;
} /* tuiSetLayout */
-
-/*
- ** tui_vSetLayoutTo()
- ** Function to set the layout to SRC, ASM, SPLIT, NEXT, PREV, DATA,
- ** REGS, $REGS, $GREGS, $FREGS, $SREGS with arguments in a va_list
- */
-TuiStatus
-tui_vSetLayoutTo (va_list args)
-{
- char *layoutName;
-
- layoutName = va_arg (args, char *);
-
- return (_tuiSetLayoutTo (layoutName));
-} /* tui_vSetLayoutTo */
-
-
/*
** tuiAddWinToLayout().
** Add the specified window to the layout in a logical way.
@@ -348,22 +329,6 @@ tuiAddWinToLayout (TuiWinType type)
/*
- ** tui_vAddWinToLayout().
- ** Add the specified window to the layout in a logical way,
- ** with arguments in a va_list.
- */
-void
-tui_vAddWinToLayout (va_list args)
-{
- TuiWinType type = va_arg (args, TuiWinType);
-
- tuiAddWinToLayout (type);
-
- return;
-} /* tui_vAddWinToLayout */
-
-
-/*
** tuiDefaultWinHeight().
** Answer the height of a window. If it hasn't been created yet,
** answer what the height of a window would be based upon its
@@ -482,7 +447,7 @@ tui_set_layout (const char *layoutName)
TuiRegisterDisplayType dpyType = TUI_UNDEFINED_REGS;
TuiLayoutType curLayout = currentLayout ();
- bufPtr = (char *) tuiStrDup (layoutName);
+ bufPtr = (char *) xstrdup (layoutName);
for (i = 0; (i < strlen (layoutName)); i++)
bufPtr[i] = toupper (bufPtr[i]);
@@ -628,6 +593,8 @@ _tuiToggleLayout_command (char *arg, int fromTTY)
{
TuiLayoutDefPtr layoutDef = tuiLayoutDef ();
+ /* Make sure the curses mode is enabled. */
+ tui_enable ();
if (layoutDef->displayMode == SRC_WIN)
layoutDef->displayMode = DISASSEM_WIN;
else
@@ -644,6 +611,8 @@ _tuiToggleSplitLayout_command (char *arg, int fromTTY)
{
TuiLayoutDefPtr layoutDef = tuiLayoutDef ();
+ /* Make sure the curses mode is enabled. */
+ tui_enable ();
layoutDef->split = (!layoutDef->split);
_tuiHandleXDBLayout (layoutDef);
@@ -653,6 +622,10 @@ _tuiToggleSplitLayout_command (char *arg, int fromTTY)
static void
_tuiLayout_command (char *arg, int fromTTY)
{
+ /* Make sure the curses mode is enabled. */
+ tui_enable ();
+
+ /* Switch to the selected layout. */
if (tui_set_layout (arg) != TUI_SUCCESS)
warning ("Invalid layout specified.\n%s", LAYOUT_USAGE);