Message ID | 20200104183410.17114-2-tom@tromey.com |
---|---|
State | New |
Headers | show
Delivered-To: patches-gcc@linaro.org Received: by 2002:a2e:9793:0:0:0:0:0 with SMTP id y19csp22597051lji; Sat, 4 Jan 2020 10:34:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwiU2TFEL4/moIpB1QUsQZq89/aIqw21FyOo7k7X4k2R8/bxM/i22CAEykjAg8GnYyt0O1A X-Received: by 2002:a9d:6c06:: with SMTP id f6mr107768048otq.318.1578162872570; Sat, 04 Jan 2020 10:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578162872; cv=none; d=google.com; s=arc-20160816; b=ICePBpxaSyPGEWGimIwiBPsYWjFci40wsyiHsfJJ52/0FBKRthcfMAVOBmM5/YNg4J VSX32yAS+sp37PZlOOsb3/fDX3BssC+8rw4TPCau7iAQIyYbGXIT2PUZ8qpLeeoQkSLu rtUdI3or+j9tpRLGxc2sHC6+R1HCDg+IW9imgP2z8GD3FRJdeVWMFrmE1xXiR3W/5z4a UNaohPhltT9ca7OfdXqe+hbChBPlDJY9rWs0IEVUQqvmfbX5+Gwg0BFjzQhgJzQZ1SgS poK1rgYVvMsH/JeB6S5oFmrPRBtDutPqfrSrW6o6JUi54cR5funtK+kN5ljKGsXLvV1b AsJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=vNZKsDMk8OONdRRKEvhIvNXDSfHpodZD0mCA2a9nOyM=; b=t+T/6IbZgoMDE3bFctgIauLyj7JB8/gONi+NsGEt1rL5LLZBXhw9scQtUtYR96MQWD HAF5gC9B2XeLoUpkmFafFV8xMY8LPEsE5Qe+zEK0dQRoHHkRdwncCqyh5shbULRITzlb uWKDZ9BsaCsjULm5s5v3B5Q9WGjGw0nMC3gSMIVtJCSZ9S58zC6JuCRB3etHCVr6G3Qs khT0ajUxEFPZfgRyCRF9AqJ3KNtkDzFOm54LY8XmI9nZQ3igDRhY6+mNoAg5u7Z+SBmL s5z9DRPIMuOs88HP60f6CgoyFiGRaZTv71rRhc6dyhqrAzne5h3FzdSlUHLnvfg4alBZ jepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=V5xHvysR; dkim=fail header.i=@tromey.com header.s=default header.b=BeJqWElh; spf=pass (google.com: domain of gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org" Return-Path: <gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org> Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v21si33807919otj.282.2020.01.04.10.34.32 for <patches-gcc@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jan 2020 10:34:32 -0800 (PST) Received-SPF: pass (google.com: domain of gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=V5xHvysR; dkim=fail header.i=@tromey.com header.s=default header.b=BeJqWElh; spf=pass (google.com: domain of gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gdb-patches-return-162743-patches-gcc=linaro.org@sourceware.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=gBHrC/0Olv80uDUa5/cifSCW1DajPwR 9tnkFEUNpfnIIUPJ97DUsiH0vcP8DdLPgnZI2Q0KJ5owFsG9m00QO0dXqNQAq63d rv7eo1LbWkUiBD+4DByrsaTTZZq/GU709PUFGD4SZZAr4WQxkz3ooObPI4T8PeXG Tl9wcsUMhRvs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=AAvkGd33MkCPGr7Z4sPokP1u4Uo=; b=V5xHv ysRb9JnLZrX8y3Df6ZY5s6GsqOWGqAaPECyhH3+2RliacvIA6pHRK14KGq2NBvGa xEA8pNyw4pbjNd2RnYdK+hajJqyuiGByIQAGQdCf9m2W/V5sYP+hXed6tzYQ0791 YtYgsVSYjqdfLREQsPy2Vm2EuLKqXZ38d4XFrw= Received: (qmail 130176 invoked by alias); 4 Jan 2020 18:34:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-patches-gcc=linaro.org@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 130092 invoked by uid 89); 4 Jan 2020 18:34:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.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_HELO_PASS autolearn=ham version=3.3.1 spammy=viewport X-HELO: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.148.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Jan 2020 18:34:14 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 778688C345 for <gdb-patches@sourceware.org>; Sat, 4 Jan 2020 12:34:13 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id noFZipMQQHunhnoFZi0BgZ; Sat, 04 Jan 2020 12:34:13 -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=vNZKsDMk8OONdRRKEvhIvNXDSfHpodZD0mCA2a9nOyM=; b=BeJqWElhfL43tnzc4FXCu96A9Q RRpje9rNLw3fgIZqH03MN7ljl70PPaHsKFquvwETizbgFoq+64RaQo5koFt2gF4auSonAwVqA/e+8 SK/W7J6XsRE4YmgDtwdEDKhye; 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 <tom@tromey.com>) id 1inoFZ-0026Lh-Ab; Sat, 04 Jan 2020 11:34:13 -0700 From: Tom Tromey <tom@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey <tom@tromey.com> Subject: [PATCH 01/24] Use TUI_DISASM_WIN instead of tui_win_list array Date: Sat, 4 Jan 2020 11:33:47 -0700 Message-Id: <20200104183410.17114-2-tom@tromey.com> In-Reply-To: <20200104183410.17114-1-tom@tromey.com> References: <20200104183410.17114-1-tom@tromey.com> |
Series |
|
Related |
show
|
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index c72b50730b0..f482086ca2e 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -302,8 +302,8 @@ tui_get_low_disassembly_address (struct gdbarch *gdbarch, /* Determine where to start the disassembly so that the pc is about in the middle of the viewport. */ - if (tui_win_list[DISASSEM_WIN] != NULL) - pos = tui_win_list[DISASSEM_WIN]->height; + if (TUI_DISASM_WIN != NULL) + pos = TUI_DISASM_WIN->height; else if (TUI_CMD_WIN == NULL) pos = tui_term_height () / 2 - 2; else