From patchwork Sat Jan 4 18:34:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 37191 Received: (qmail 1746 invoked by alias); 4 Jan 2020 18:34:31 -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 937 invoked by uid 89); 4 Jan 2020 18:34:26 -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, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway23.websitewelcome.com Received: from gateway23.websitewelcome.com (HELO gateway23.websitewelcome.com) (192.185.49.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Jan 2020 18:34:19 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 52FCD1808F for ; Sat, 4 Jan 2020 12:34:18 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id noFeipMTMHunhnoFei0BjT; Sat, 04 Jan 2020 12:34:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xNz44tjxUSl8S0h9SPo2DVyNVrDlYgdjFZfjd//X1lk=; b=MiTxxODXGrjuthT/xHk9MBB5IC rcwsr2YJ7vIOJN4IH0eK6g93UsfKxYejarcAYzRGdffc/r1FGUSEZmIj2QkkGl2nGe7xAnuVQbiOq y838TTf06nphR0bTWpp/sC4t4; Received: from 75-166-123-50.hlrn.qwest.net ([75.166.123.50]:48942 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1inoFe-0026Lh-5A; Sat, 04 Jan 2020 11:34:18 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 24/24] Fix cast in TUI_DISASM_WIN Date: Sat, 4 Jan 2020 11:34:10 -0700 Message-Id: <20200104183410.17114-25-tom@tromey.com> In-Reply-To: <20200104183410.17114-1-tom@tromey.com> References: <20200104183410.17114-1-tom@tromey.com> I noticed that the TUI_DISASM_WIN macro cast the disassembly window to a base type, rather than its correct type. This patch fixes this oversight. 2020-01-04 Tom Tromey * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. Change-Id: Ied3dbac9ef3dc48ceb9e0850fe4ada3c316dd769 --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-data.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 0583c4a5c99..7f68b1c4219 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -29,6 +29,7 @@ struct tui_cmd_window; struct tui_source_window_base; struct tui_source_window; +struct tui_disasm_window; /* A deleter that calls delwin. */ struct curses_deleter @@ -222,7 +223,7 @@ public: extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; #define TUI_SRC_WIN ((tui_source_window *) tui_win_list[SRC_WIN]) -#define TUI_DISASM_WIN ((tui_source_window_base *) tui_win_list[DISASSEM_WIN]) +#define TUI_DISASM_WIN ((tui_disasm_window *) tui_win_list[DISASSEM_WIN]) #define TUI_DATA_WIN ((tui_data_window *) tui_win_list[DATA_WIN]) #define TUI_CMD_WIN ((tui_cmd_window *) tui_win_list[CMD_WIN])