From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38342 invoked by alias); 9 Aug 2018 18:29:41 -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 38310 invoked by uid 89); 9 Aug 2018 18:29:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=crude, H*f:sk:045ba9b, H*f:sk:13DC373, H*f:sk:4caa36e X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Aug 2018 18:29:39 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w79ITXob018887 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 9 Aug 2018 14:29:37 -0400 Received: by simark.ca (Postfix, from userid 112) id 206E61EF38; Thu, 9 Aug 2018 14:29:33 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 861961E077; Thu, 9 Aug 2018 14:29:31 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 09 Aug 2018 18:29:00 -0000 From: Simon Marchi To: Alan Hayward Cc: Simon Marchi , GDB Patches , nd Subject: Re: [PATCH v2 1/3] Add min size to regset section iterations In-Reply-To: <85fb7a3bf0d60220a19bab71f49f51cf@polymtl.ca> References: <20180730092528.98739-1-alan.hayward@arm.com> <20180730092528.98739-2-alan.hayward@arm.com> <045ba9b9-6f37-0eeb-5609-f895e29f894f@ericsson.com> <13DC373A-4E12-46C4-AA97-C11E82224056@arm.com> <4caa36e74ca613047db83f1a9868ea3e@polymtl.ca> <85fb7a3bf0d60220a19bab71f49f51cf@polymtl.ca> Message-ID: <24a71985b6e26f91eab086df4bb68877@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00229.txt.bz2 On 2018-08-08 09:34, Simon Marchi wrote: > Just to put yet another option on the table: since "size" parameter is > only used to allocate some space for the collect function to dump the > register data in, what about making the collect functions allocate > that space themselves. For example, by making them return a > gdb::byte_vector. Just to let you know, I've started to play with this idea, see this branch (still very crude): https://github.com/simark/binutils-gdb/commits/regset Please let me know what you think. Does it actually help in your case, and is it a good way to go in general? Simon