From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19910 invoked by alias); 21 Jul 2018 18:47:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19612 invoked by uid 89); 21 Jul 2018 18:47:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.7 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.2 spammy= X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Jul 2018 18:47:25 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 8D2818FBA for ; Sat, 21 Jul 2018 13:47:24 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id gwuafnqJXSjJAgwuafa8cs; Sat, 21 Jul 2018 13:47:24 -0500 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=ohaY7V8voZ/euVyiwCYgNYtLH1LhK/YZtqezMWdFaHo=; b=gZnh0cHd8+XheRU30nUtPAeQI2 VW+55weqQQnCfyc5yscf/2VhyBuENhdTHSgctL0/Jmb14Qv4UdI4wUMawQBwi/BAqB4vDY677of1w Ew/dR07J53AcZ83AAhAuHf1cc; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:44394 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fgwua-002Auc-Bi; Sat, 21 Jul 2018 13:47:24 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA v2 08/13] Fix ravenscar-thread.c to use arch_ops Date: Sat, 21 Jul 2018 18:47:00 -0000 Message-Id: <20180721184720.3263-9-tom@tromey.com> In-Reply-To: <20180721184720.3263-1-tom@tromey.com> References: <20180721184720.3263-1-tom@tromey.com> X-SW-Source: 2018-07/txt/msg00636.txt.bz2 The change to turn target ops into methods accidentally introduced a bug in ravenscar-thread.c, changing some calls that were using "arch_ops" to use the target beneath. This patch changes ravenscar-thread.c to use these variables where appropriate. gdb/ChangeLog 2018-07-21 Tom Tromey * ravenscar-thread.c (ravenscar_thread_target::store_registers): Use arch_ops. (ravenscar_thread_target::prepare_to_store): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/ravenscar-thread.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 8bd31a5a725..e60fad87466 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -442,7 +442,7 @@ ravenscar_thread_target::store_registers (struct regcache *regcache, struct ravenscar_arch_ops *arch_ops = gdbarch_ravenscar_ops (gdbarch); - beneath ()->store_registers (regcache, regnum); + arch_ops->to_store_registers (regcache, regnum); } else beneath ()->store_registers (regcache, regnum); @@ -461,7 +461,7 @@ ravenscar_thread_target::prepare_to_store (struct regcache *regcache) struct ravenscar_arch_ops *arch_ops = gdbarch_ravenscar_ops (gdbarch); - beneath ()->prepare_to_store (regcache); + arch_ops->to_prepare_to_store (regcache); } else beneath ()->prepare_to_store (regcache); -- 2.13.6