diff options
author | Tom Tromey <tom@tromey.com> | 2019-10-08 15:44:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-11-12 12:29:14 -0700 |
commit | d9fcefd53a7615b116cab0b0cd2085539d12bb6f (patch) | |
tree | 13908af6850aa62b5e85c779df868d49de10c377 /gdb | |
parent | Make TUI resizing tests more robust (diff) | |
download | binutils-gdb-d9fcefd53a7615b116cab0b0cd2085539d12bb6f.tar.gz binutils-gdb-d9fcefd53a7615b116cab0b0cd2085539d12bb6f.tar.bz2 binutils-gdb-d9fcefd53a7615b116cab0b0cd2085539d12bb6f.zip |
Move _initialize_tui_layout to end of file
This moves _initialize_tui_layout to the end of the file, conforming
to the typical gdb style.
gdb/ChangeLog
2019-11-12 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (_initialize_tui_layout): Move to end.
Change-Id: I667f741b44b2bc470878a36f093a96d89fa31893
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/tui/tui-layout.c | 51 |
2 files changed, 30 insertions, 25 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ee9a464c1bf..f1a05e276db 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2019-11-12 Tom Tromey <tom@tromey.com> + * tui/tui-layout.c (_initialize_tui_layout): Move to end. + +2019-11-12 Tom Tromey <tom@tromey.com> + * tui/tui-win.c (resize_message): New global. (show_tui_resize_message): New function. (tui_async_resize_screen): Print message if requested. diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 3a510f436d2..c7f6545b3ec 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -247,31 +247,6 @@ layout_completer (struct cmd_list_element *ignore, complete_on_enum (tracker, layout_names, text, word); } -/* Function to initialize gdb commands, for tui window layout - manipulation. */ - -void -_initialize_tui_layout (void) -{ - struct cmd_list_element *cmd; - - cmd = add_com ("layout", class_tui, tui_layout_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\ - asm : Displays disassembly and command windows.\n\ - split : Displays source, disassembly and command windows.\n\ - regs : Displays register window. If existing layout\n\ - is source/command or assembly/command, the \n\ - register window is displayed. If the\n\ - source/assembly/command (split) is displayed, \n\ - the register window is displayed with \n\ - the window that has current logical focus.")); - set_cmd_completer (cmd, layout_completer); -} - - /* Function to set the layout to SRC, ASM, SPLIT, NEXT, PREV, DATA, or REGS. */ static void @@ -568,3 +543,29 @@ show_source_or_disasm_and_command (enum tui_layout_type layout_type) src_height); current_layout = layout_type; } + + + +/* Function to initialize gdb commands, for tui window layout + manipulation. */ + +void +_initialize_tui_layout (void) +{ + struct cmd_list_element *cmd; + + cmd = add_com ("layout", class_tui, tui_layout_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\ + asm : Displays disassembly and command windows.\n\ + split : Displays source, disassembly and command windows.\n\ + regs : Displays register window. If existing layout\n\ + is source/command or assembly/command, the \n\ + register window is displayed. If the\n\ + source/assembly/command (split) is displayed, \n\ + the register window is displayed with \n\ + the window that has current logical focus.")); + set_cmd_completer (cmd, layout_completer); +} |