From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2610:1c1:1:606c::19:2]) by sourceware.org (Postfix) with ESMTPS id 9617F3858D1E for ; Mon, 19 Jun 2023 18:27:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9617F3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4QlJCY420jz47rF; Mon, 19 Jun 2023 18:27:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QlJCY3JZjz3ypR; Mon, 19 Jun 2023 18:27:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687199257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EMb4MJAZ4V1Qd5gz1JyZScwKsPJbLbmXT7d47RmYYw4=; b=oc8dzhw/6H1vs6zXDgSgxVsKe1UvjOno2aalQ5Fxia6KCF4xsbGFcwn/nzeWcIehgh6641 /9Tp76HlNIuwORdk4XhlZ4e3K2XhXB2+MtlvofyqafVNzwoMomwWIRDwk45wM3+9iMTKrn 9zYH+2PswbGU8V778/8+Xg5VvpUBhkS8CG1QlLD9u7oHZu3piBu9hRhO4Lt5RPKBsGg+hP SyaX1JeOoUp+hQHo3himuCSDg+/1ffHpDAwJHjYDtLyhFEdKaMv6ec2A61v+Y9tlsenwV0 Er7pNrRXW721YgoIHg/chT/MBvmzQd6R2zOMk7nhge0z6DVNzOP7QI63y57Y6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687199257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EMb4MJAZ4V1Qd5gz1JyZScwKsPJbLbmXT7d47RmYYw4=; b=WpT8y//1XyiyfwpERfbNfdxr0mbdZzDeaq7myKfkHRoxM4wSRIfEViddtIi+I6vJNq6WWF KxlTax4/KrbWaONTJrpuIxlCkLziXUXc9kQaa8f+lTPylQBpEnEsY8L8ewyZe1ZlMboDJ1 FU5l9xy83mcbqxBnXhhlD7ZDIU2DycC6lK3F/mgFmsgF22oUdPjnE0Z+G39kCVWN3LozXa 3yQQEG9ZoqEO4woMLwbhJO/xGusKqHOTazbjrLUKLsnMIwqFZuEMJL1S2jU1FiLvj97s98 +fhcsH0pPAaRGIWJ86BpP6iS2o3oYMNtpf3TwNdKEVieRzOHs1tvGtTWO6ve5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687199257; a=rsa-sha256; cv=none; b=L1JlB8kbsbqMvPUww4J9iLoecPyHhihUlvbm3Vet5a1GABtM8lxRkEFim8xYnv6wfosw5z cHzoXKHxZNgmqN+jnrkpXdgk9JC8OFYBU20NWyrnj72rULTFSTxfMzpXmcbFMFG+5wnBz8 AQpXWpWp+ogt9RtsvztkSQTzPvbaY2gv0nS3kDa/csHKLWs8QJ7RtWaYZBQ1jWoD8KAGB+ aXSZiD2QAWD0TrVoYIfwTuwaaxBYd1qjXY5o/qnRa/2IgQhnk+L8LyGi0OqfgtBDWyDFEj R3qT4FRKcWG5kNo7zGKYSiSVu3UloGIrWVRD+vKcJ4NQ8pd+QMQ8nAz5zQOusw== Received: from [IPV6:2601:648:8680:16b0:7883:82dc:8eb0:82c6] (unknown [IPv6:2601:648:8680:16b0:7883:82dc:8eb0:82c6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QlJCY0Mx2zc0S; Mon, 19 Jun 2023 18:27:36 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <2a918fa7-8dd5-0faf-aea8-0361aeb46237@FreeBSD.org> Date: Mon, 19 Jun 2023 11:27:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/3] Remove some uses of xrealloc Content-Language: en-US To: Tom Tromey , gdb-patches@sourceware.org References: <20230619-remove-some-realloc-v1-0-8bee74d5b934@tromey.com> From: John Baldwin In-Reply-To: <20230619-remove-some-realloc-v1-0-8bee74d5b934@tromey.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,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 List-Id: On 6/19/23 10:51 AM, Tom Tromey wrote: > This short series removes a few uses of xrealloc and associated manual > memory management. This simplifies the code a bit. > > Regression tested on x86-64 Fedora 36. All LGTM. Reviewed-by: John Baldwin -- John Baldwin