Move _initialize_tui_layout to end of file
authorTom Tromey <tom@tromey.com>
Tue, 8 Oct 2019 21:44:18 +0000 (15:44 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 12 Nov 2019 19:29:14 +0000 (12:29 -0700)
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

gdb/ChangeLog
gdb/tui/tui-layout.c

index ee9a464c1bf2fb2e66b50c4afa5b3e54bb7c0d37..f1a05e276db2d433eeb3ca0c43a0b992e0ccc9a3 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 3a510f436d2b90590c5514e18ed0616f7613418e..c7f6545b3ecb3bee5b80f2cf3ef2296b0d6c3739 100644 (file)
@@ -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;
 }
+
+\f
+
+/* 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);
+}
This page took 0.03065 seconds and 4 git commands to generate.