From nobody Wed Jul 13 16:47:33 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3160217FC114; Wed, 13 Jul 2022 16:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ljk7V10JVz3WJ6; Wed, 13 Jul 2022 16:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657730854; 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; bh=Dwi2ZYiXV2I7JVjttWkoFhFFUruhVpr59zyzM4rexbU=; b=X1ehuh3CBNFHKfQNtJ/GHH3W3G4Mv+GCJzGY8k93K6XNsXQuErh+yvh0NDuGVbzY0ZvJFu HUqlZzx9J1vp7XN4wYTAFYCXyDJ3F8qvbPSg7laX1PEkCRt3YSka9XANxm4DnGUh3cWJkx 10DwY0jkjmKm4ZMGajj30peMnImgpkyrtE6dn62FAKZ2YNJrVW2zkxFcnZAK771/sc7e82 pGFYON+Zjddjdx2Koff1Clb5fcGvygFNA1VsEj2e/gFAmZtD4rOLIid3qlFc43gESdqxJA G+NYxb2sDoQdxAAiJAKHEyptiovHeUpXdiKaswxf7D9yycGbdhkweA1qJ8Iy9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ljk7V06MvzW8k; Wed, 13 Jul 2022 16:47:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26DGlX2M052100; Wed, 13 Jul 2022 16:47:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26DGlXvv052099; Wed, 13 Jul 2022 16:47:33 GMT (envelope-from git) Date: Wed, 13 Jul 2022 16:47:33 GMT Message-Id: <202207131647.26DGlXvv052099@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 558cb98269d9 - stable/13 - gcore: Remove unused elf_note_arm_vfp function. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 558cb98269d9ef21e41a4c28ce5a1af032ab61ea Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657730854; 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; bh=Dwi2ZYiXV2I7JVjttWkoFhFFUruhVpr59zyzM4rexbU=; b=PgOZLbgl8ucz2muzWguG+4T6/ntkRtkhK0fCaSJfqUiLgXGY2x2m1SSt6ODp/XNVboBRaE tRoA/VIgtw/n9jORHjRJ1tB+SDR3mhQNF3m62s/ZFu1GBSukrTsvZeSLr0PerIXoeM/UWR aweoGiL+O7lGuZs3fHkeMcrHJreXzM2O79lGZ11WPg7lV4+AcI8KcTGBEV8qGVzWyN4zPq 4hyJ7r379fJze1q7EDBxAvbR5o5IIcWVk+53tGHpFuevpJO6+dCSNn6CWCTiiOQis5Mvw3 ELXRUk0DoLbYmPtJ50upZrjgApPIUA+dNZPAy/wNNIUUR116M0mwOAdemwHYOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657730854; a=rsa-sha256; cv=none; b=OkFXWadRkvdYZEv30WHEz6TrNJtuyeYFHtOyDM4vSDJsaHGjXCvONVboUo0k6RGfyhWA7K sSEa9OQzqQcI1BSzMYxJEY++2WtrdnwaCR+SgWYupMDMjGSaEMGslg28+wMKh1QpmIh23n vUmJ7w7pdMD6j0FBiaV18xGNT95RpH9DMjC2c9WDiRnqaqCYatuO0I2ROJR1Xyg9sFdHF5 KRSiraVi4rE12J1CWWLCQC9YkEptUS/1SvBzQuAD/TeUN6wTpuodk973KbcCI8KSsJaOSs 8gbMc5UUfgwMpXHbA7eTSlwAUAev8aIPFSPkIXK0Y9hanFe9JSjHZ/Kc8B8ghQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=558cb98269d9ef21e41a4c28ce5a1af032ab61ea commit 558cb98269d9ef21e41a4c28ce5a1af032ab61ea Author: John Baldwin AuthorDate: 2022-06-06 18:06:49 +0000 Commit: John Baldwin CommitDate: 2022-07-13 16:18:35 +0000 gcore: Remove unused elf_note_arm_vfp function. Fixes: add00c381e5c Use a regset for NT_ARM_VFP. (cherry picked from commit ad52a7bb0393163eb4e749005be0f6ca3c2c51c0) --- usr.bin/gcore/elfcore.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index 6ef1f31d28cd..b0022d014e00 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -727,31 +727,6 @@ elf_note_ptlwpinfo(void *arg, size_t *sizep) return (p); } -#if defined(__arm__) -static void * -elf_note_arm_vfp(void *arg, size_t *sizep) -{ - lwpid_t tid; - struct vfpreg *vfp; - static bool has_vfp = true; - struct vfpreg info; - - tid = *(lwpid_t *)arg; - if (has_vfp) { - if (ptrace(PT_GETVFPREGS, tid, (void *)&info, 0) != 0) - has_vfp = false; - } - if (!has_vfp) { - *sizep = 0; - return (NULL); - } - vfp = calloc(1, sizeof(*vfp)); - memcpy(vfp, &info, sizeof(*vfp)); - *sizep = sizeof(*vfp); - return (vfp); -} -#endif - #if defined(__i386__) || defined(__amd64__) static void * elf_note_x86_xstate(void *arg, size_t *sizep)