From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id h9U7DZuF8WGVKQAAWB0awg (envelope-from ) for ; Wed, 26 Jan 2022 12:32:11 -0500 Received: by simark.ca (Postfix, from userid 112) id 26D9B1F3B6; Wed, 26 Jan 2022 12:32:11 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9F3961EA69 for ; Wed, 26 Jan 2022 12:32:10 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0096D383E812 for ; Wed, 26 Jan 2022 17:32:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0096D383E812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643218330; bh=84SPdKekI8e85O6hrX7qbs6ENUS90mvocP/32tPwGNI=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=wxgY1QfaNt9yPeGwMQm7C0OqCJpZlF4QFELS28VIIUZWoEyAYGSQyl7yGvgcF2efo l9qsORtslxoIBIm7RAhhqaBAcq0PSGbd+eEqYTFXR0VA1FeBHrUFBN+JlC8I0LfxUm OapLuoaoVoViXTc/VJk8cQdvNapwXBPwG5kc6jFQ= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CD50B3858C2C for ; Wed, 26 Jan 2022 17:31:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CD50B3858C2C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-222-VSPm9KxeNfCn1m85Si1cFQ-1; Wed, 26 Jan 2022 12:31:50 -0500 X-MC-Unique: VSPm9KxeNfCn1m85Si1cFQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9849A8143EA for ; Wed, 26 Jan 2022 17:31:49 +0000 (UTC) Received: from [10.2.16.133] (unknown [10.2.16.133]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F3D64838C2; Wed, 26 Jan 2022 17:31:48 +0000 (UTC) Message-ID: Date: Wed, 26 Jan 2022 09:31:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH] Reference array of structs instead of first member during memcpy To: Kevin Buettner , Keith Seitz via Gdb-patches References: <20220125163900.800317-1-keiths@redhat.com> <20220125144414.23457be3@f35-zws-1> In-Reply-To: <20220125144414.23457be3@f35-zws-1> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: , From: Keith Seitz via Gdb-patches Reply-To: Keith Seitz Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 1/25/22 13:44, Kevin Buettner wrote: > On Tue, 25 Jan 2022 08:39:00 -0800 > Keith Seitz via Gdb-patches wrote: > >> The simple fix is to reference the array, `MEMS' as the destination of the copy. > > LGTM. I've pushed this patch. Thank you for taking a look, Kevin! Keith