From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120853 invoked by alias); 12 Nov 2019 20:17:00 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 120804 invoked by uid 89); 12 Nov 2019 20:17:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=tracker X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2019 20:16:58 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Move _initialize_tui_layout to end of file From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: Date: Tue, 12 Nov 2019 20:17:00 -0000 X-SW-Source: 2019-q4/txt/msg02101.txt.bz2 *** TEST RESULTS FOR COMMIT d9fcefd53a7615b116cab0b0cd2085539d12bb6f *** commit d9fcefd53a7615b116cab0b0cd2085539d12bb6f Author: Tom Tromey AuthorDate: Tue Oct 8 15:44:18 2019 -0600 Commit: Tom Tromey CommitDate: Tue Nov 12 12:29:14 2019 -0700 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 * tui/tui-layout.c (_initialize_tui_layout): Move to end. Change-Id: I667f741b44b2bc470878a36f093a96d89fa31893 diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ee9a464c1b..f1a05e276d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-11-12 Tom Tromey + + * tui/tui-layout.c (_initialize_tui_layout): Move to end. + 2019-11-12 Tom Tromey * tui/tui-win.c (resize_message): New global. diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 3a510f436d..c7f6545b3e 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); +}