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 | 417832958402db68b1c2e3f345881ae0f8630100 (patch) | |
tree | 4ad17d4e6d5449aac85f44e67b98c8e768e8b5dd /gdb/tui/tuiLayout.c | |
parent | 3024f13a83deadef212a3d8606d3784033615ea2 (diff) | |
download | gdb-417832958402db68b1c2e3f345881ae0f8630100.zip gdb-417832958402db68b1c2e3f345881ae0f8630100.tar.gz gdb-417832958402db68b1c2e3f345881ae0f8630100.tar.bz2 |
* 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 18fda58..74c9747 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 */ +} /************************* |