From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IF2BNUdv8GG5BAAAWB0awg (envelope-from ) for ; Tue, 25 Jan 2022 16:44:39 -0500 Received: by simark.ca (Postfix, from userid 112) id C71AC1F3B6; Tue, 25 Jan 2022 16:44:39 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 408691EE18 for ; Tue, 25 Jan 2022 16:44:39 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 18939385E442 for ; Tue, 25 Jan 2022 21:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18939385E442 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643147078; bh=JjZBObetzSvHxjgPtwtRsGzIjVKVAg3RCpQpAEXdUag=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=yVAWh0F9A53MPYIcZWPbkpvqXHIRTEnQNCKBmONNDYLnjLcT0KVMu/f2/Gw7TzsvG 0Y0kv6lLI0TMUkH9pXdotGCHYOPYFO2k0YeZh7emPYU7EXXsOxK6TlMdl3n6HLdUPz /PthIF8CNwX/ilyrzpaaZ/6oj+PVIIsHXiRuSO5c= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 07A2B385E013 for ; Tue, 25 Jan 2022 21:44:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 07A2B385E013 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-111-9WV5CUKXMvOf-fCsiq40qg-1; Tue, 25 Jan 2022 16:44:18 -0500 X-MC-Unique: 9WV5CUKXMvOf-fCsiq40qg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 778CD83DD20 for ; Tue, 25 Jan 2022 21:44:17 +0000 (UTC) Received: from f35-zws-1 (unknown [10.2.16.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EA9BACB843; Tue, 25 Jan 2022 21:44:16 +0000 (UTC) Date: Tue, 25 Jan 2022 14:44:14 -0700 To: Keith Seitz via Gdb-patches Subject: Re: [PATCH] Reference array of structs instead of first member during memcpy Message-ID: <20220125144414.23457be3@f35-zws-1> In-Reply-To: <20220125163900.800317-1-keiths@redhat.com> References: <20220125163900.800317-1-keiths@redhat.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII 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: Kevin Buettner via Gdb-patches Reply-To: Kevin Buettner Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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. Kevin