From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Fw1NOZqqhGVfBScAWB0awg (envelope-from ) for ; Thu, 21 Dec 2023 16:14:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1703193242; bh=QU5gGJa9+gkfJxV9uRn0Sv1DnKvM3op4eftqYk8fq60=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Z8lvy4s5B2zh7pRO71qQ+L5UiaJuz8bWK8em9aB+cE1fENCVxPagD/FaNGn6iYGTy xfwvnyxupTmtRcroOyRwpEB6VVOd4rTMIYA9ekqE5Gltz1NjJefM27YqHB+N0gaY9c PMA3/orQsk3qclJsqNFjk3GSBbdzC8XGP2ZBDLbI= Received: by simark.ca (Postfix, from userid 112) id D98EA1E0C3; Thu, 21 Dec 2023 16:14:02 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=uJO0kwuG; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C8E3B1E0AC for ; Thu, 21 Dec 2023 16:14:00 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7BE0C3858292 for ; Thu, 21 Dec 2023 21:14:00 +0000 (GMT) Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id D954C3858D37 for ; Thu, 21 Dec 2023 21:13:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D954C3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D954C3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703193229; cv=none; b=Clb1oMeSboCoG99lifDK4SV2yrR4Va5QTdD12yWhE0mTq0lPY3Bliru/75tSa0wssI3kLMNlCR090dblP0xs+QrIylvqXJ8GngQ4eSdHUG5HebRH1Ef3ONzeK+6qA5re2+bXBcq27Sksb40mL4NsYFjNfp1VzXxLenlu1ZOxKaw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703193229; c=relaxed/simple; bh=QU5gGJa9+gkfJxV9uRn0Sv1DnKvM3op4eftqYk8fq60=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=VekUaeYW7r3/Yub6pjEA/25abaZaAmytGJBfGNKMhYO7iscqypJCDEBsdGxJeQfZnqX5KsgMUMFBTSO1LE5cLFPALNBQW/dmM53gEmdHoC6B5uO4vnTosjqAgrEsUQYVWXLiATrnsrBiNAj1Hx1a31fOapxgJzjUiblL3s73FIc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1703193228; bh=QU5gGJa9+gkfJxV9uRn0Sv1DnKvM3op4eftqYk8fq60=; h=Date:Subject:To:References:From:In-Reply-To:From; b=uJO0kwuGXiOdbL6lkumNlh/ISvF0yGE8rQIqbQGwpocyAuaXiS2VxCuWixEC+ZPbo KaJfjP6BfT8KjV1VpmNARzzvWSZhkRUUGaXc2dC2f5tsNqLJjIGbc4wD176qfY6zpL PP3tmEQXJPBdi96UXyYxGpb81L0QdQUu8uZLxeaU= Received: from [172.16.0.192] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 51E411E0AC; Thu, 21 Dec 2023 16:13:48 -0500 (EST) Message-ID: <389952e7-4479-4bca-9c32-1b7d8e600583@simark.ca> Date: Thu, 21 Dec 2023 16:13:47 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/26] gdbserver: convert registers_to_string into regcache::registers_to_string Content-Language: fr To: Tankut Baris Aktemur , gdb-patches@sourceware.org References: <5ff95fd684084ed53879f1c2c5f96be1a9d4a59a.1677582744.git.tankut.baris.aktemur@intel.com> From: Simon Marchi In-Reply-To: <5ff95fd684084ed53879f1c2c5f96be1a9d4a59a.1677582744.git.tankut.baris.aktemur@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org On 2/28/23 06:28, Tankut Baris Aktemur via Gdb-patches wrote: > Convert the free `registers_to_string` function into a method of > the regcache struct. I'm not strongly opposed to this change, but I think that it works just as well as a free function. Not everything working on a regcache needs to be a method of regcache. If you imagine that all the members of regcache are private, and it offers an interface to access the register contents and statuses, then registers_to_string can very well be implemented using that public interface. Simon