diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-19 22:47:46 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-19 22:47:46 +0000 |
commit | 7fc35c78bfbeb3f2e35bc8b61ef03876a979b692 (patch) | |
tree | 906dde1fba55ceca3de3c76e4c31fe7a6e613f69 /gdb/tui/tuiLayout.c | |
parent | 18c46a4837ea40a33421822049e65a134d95666f (diff) | |
download | gdb-7fc35c78bfbeb3f2e35bc8b61ef03876a979b692.tar.gz |
* tuiWin.c (_initialize_tuiWin): Always define the tui commands;
create the tui class help.
* tuiLayout.c (_initialize_tuiLayout): Always define the tui commands.
* tuiRegs.c (_initialize_tuiRegs): Likewise.
* tuiStack.c (_initialize_tuiStack): Likewise.
Diffstat (limited to 'gdb/tui/tuiLayout.c')
-rw-r--r-- | gdb/tui/tuiLayout.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c index 18fda5877a5..74c9747036d 100644 --- a/gdb/tui/tuiLayout.c +++ b/gdb/tui/tuiLayout.c @@ -435,10 +435,8 @@ tuiDefaultWinViewportHeight (TuiWinType type, TuiLayoutType layout) void _initialize_tuiLayout (void) { - if (tui_version) - { - add_com ("layout", class_tui, _tuiLayout_command, - "Change the layout of windows.\n\ + add_com ("layout", class_tui, _tuiLayout_command, + "Change the layout of windows.\n\ Usage: layout prev | next | <layout_name> \n\ Layout names are:\n\ src : Displays source and command windows.\n\ @@ -450,18 +448,15 @@ Layout names are:\n\ source/assembly/command (split) is displayed, \n\ the register window is displayed with \n\ the window that has current logical focus.\n"); - if (xdb_commands) - { - add_com ("td", class_tui, _tuiToggleLayout_command, - "Toggle between Source/Command and Disassembly/Command layouts.\n"); - add_com ("ts", class_tui, _tuiToggleSplitLayout_command, - "Toggle between Source/Command or Disassembly/Command and \n\ + if (xdb_commands) + { + add_com ("td", class_tui, _tuiToggleLayout_command, + "Toggle between Source/Command and Disassembly/Command layouts.\n"); + add_com ("ts", class_tui, _tuiToggleSplitLayout_command, + "Toggle between Source/Command or Disassembly/Command and \n\ Source/Disassembly/Command layouts.\n"); - } } - - return; -} /* _intialize_tuiLayout */ +} /************************* |