From patchwork Tue Nov 12 19:40:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 35845 Received: (qmail 74667 invoked by alias); 12 Nov 2019 19:40:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 74546 invoked by uid 89); 12 Nov 2019 19:40:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2019 19:40:17 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id D71C82047F; Tue, 12 Nov 2019 14:40:14 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id 809BE20D62; Tue, 12 Nov 2019 14:40:08 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 416C020AF6; Tue, 12 Nov 2019 14:40:08 -0500 (EST) X-Gerrit-PatchSet: 3 Date: Tue, 12 Nov 2019 14:40:08 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Tom Tromey , gdb-patches@sourceware.org Cc: Andrew Burgess Auto-Submitted: auto-generated X-Gerrit-MessageType: merged Subject: [pushed] Move _initialize_tui_layout to end of file X-Gerrit-Change-Id: I667f741b44b2bc470878a36f093a96d89fa31893 X-Gerrit-Change-Number: 362 X-Gerrit-ChangeURL: X-Gerrit-Commit: d9fcefd53a7615b116cab0b0cd2085539d12bb6f In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, tromey@sourceware.org, andrew.burgess@embecosm.com, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-76-gf8b6da0ab5 Message-Id: <20191112194008.416C020AF6@gnutoolchain-gerrit.osci.io> Sourceware to Gerrit sync has submitted this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/362 ...................................................................... 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 --- M gdb/ChangeLog M gdb/tui/tui-layout.c 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ee9a464..f1a05e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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. (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 3a510f4..c7f6545 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -247,31 +247,6 @@ 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 @@ 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); +}