From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13530 invoked by alias); 18 Jun 2018 14:44:58 -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 13449 invoked by uid 89); 18 Jun 2018 14:44:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Jun 2018 14:44:52 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 3D48D388EA for ; Mon, 18 Jun 2018 09:44:48 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id UvOifjrbaSjJAUvOifHiRz; Mon, 18 Jun 2018 09:44:48 -0500 X-Authority-Reason: nr=8 Received: from 75-166-79-120.hlrn.qwest.net ([75.166.79.120]:47178 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fUvOh-0011Rc-Pr; Mon, 18 Jun 2018 09:44:47 -0500 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Use unique_xmalloc_ptr for read_string References: <20180521204146.17553-1-tom@tromey.com> Date: Mon, 18 Jun 2018 14:44:00 -0000 In-Reply-To: <20180521204146.17553-1-tom@tromey.com> (Tom Tromey's message of "Mon, 21 May 2018 14:41:46 -0600") Message-ID: <87r2l4jgrm.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fUvOh-0011Rc-Pr X-Source-Sender: 75-166-79-120.hlrn.qwest.net (bapiya) [75.166.79.120]:47178 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-06/txt/msg00451.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> This changes read_string's "buffer" out-parameter to be a Tom> unique_xmalloc_ptr, then updates the users. This allows for the Tom> removal of some cleanups. Tom> I chose unique_xmalloc_ptr rather than byte_vector here due to the way Tom> Guile unwinding seems to work. Tom> Tested by the buildbot. Ping. Tom