From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gateway31.websitewelcome.com (gateway31.websitewelcome.com [192.185.144.80]) by sourceware.org (Postfix) with ESMTPS id 3C28F3861922 for ; Tue, 21 Jul 2020 01:49:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C28F3861922 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway31.websitewelcome.com (Postfix) with ESMTP id B215647FE41 for ; Mon, 20 Jul 2020 20:49:16 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id xhPAjBSjLwgQAxhPAjGFgh; Mon, 20 Jul 2020 20:49:16 -0500 X-Authority-Reason: nr=8 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=7FXWXhfOXR9C5cUof+yFIa3SmlZ/Dk9A2opq1k1xfS4=; b=MUxYC5s5SyNTey/LQHBXylRBZY vcrYDzZrsVFJ/insO9+HH6zd78T4dIKzYNsXXS5YJEQ8fs8HQIEPDVMAUIlCNPS5s2jhUuBWz8r/u B2l+f6YuLgmqKPWV9gcpRXeEY; Received: from 174-16-104-48.hlrn.qwest.net ([174.16.104.48]:39580 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jxhPA-002QKw-6g; Mon, 20 Jul 2020 19:49:16 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 1/8] Remove target_has_all_memory Date: Mon, 20 Jul 2020 19:49:07 -0600 Message-Id: <20200721014914.29937-2-tom@tromey.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200721014914.29937-1-tom@tromey.com> References: <20200721014914.29937-1-tom@tromey.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.104.48 X-Source-L: No X-Exim-ID: 1jxhPA-002QKw-6g X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-104-48.hlrn.qwest.net (bapiya.Home) [174.16.104.48]:39580 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3034.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 01:49:18 -0000 target_has_all_memory isn't used anywhere, so this patch removes it. gdb/ChangeLog 2020-07-20 Tom Tromey * target.c (target_has_all_memory_1): Remove. * target.h (target_has_all_memory): Remove define. (target_has_all_memory_1): Don't declare. --- gdb/ChangeLog | 6 ++++++ gdb/target.c | 10 ---------- gdb/target.h | 7 ------- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/gdb/target.c b/gdb/target.c index cd66675e8a4..afd1d5b327d 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -169,16 +169,6 @@ show_targetdebug (struct ui_file *file, int from_tty, fprintf_filtered (file, _("Target debugging is %s.\n"), value); } -int -target_has_all_memory_1 (void) -{ - for (target_ops *t = current_top_target (); t != NULL; t = t->beneath ()) - if (t->has_all_memory ()) - return 1; - - return 0; -} - int target_has_memory_1 (void) { diff --git a/gdb/target.h b/gdb/target.h index 4e8d4cccd5c..208866a9c05 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1792,13 +1792,6 @@ extern void default_target_pass_ctrlc (struct target_ops *ops); (current_top_target ()->rcmd) (command, outbuf) -/* Does the target include all of memory, or only part of it? This - determines whether we look up the target chain for other parts of - memory if this target can't satisfy a request. */ - -extern int target_has_all_memory_1 (void); -#define target_has_all_memory target_has_all_memory_1 () - /* Does the target include memory? (Dummy targets don't.) */ extern int target_has_memory_1 (void); -- 2.17.2