From nobody Mon Jun 6 18:08:16 2022 X-Original-To: dev-commits-src-main@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 673D41BE082D; Mon, 6 Jun 2022 18:08:17 +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 4LH1gj14xtz4stb; Mon, 6 Jun 2022 18:08:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654538897; 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=bVCYb7LX/JfrbxhUZt4qVXddlMxeoKdAu6CGKomVW00=; b=JBnDy1LPDlqfe+Nx1IKfaf1zsKBNzNDnEqhfXcDH/UuH13U+D4xkV/EzI12hj0uJr4UXBE vQlM/GZfskXjFjI5OahKNhu9pdj8GTERtNXjhEm8MSp5oR6uFCvT/xfLQZxQUjM88c6zN3 mgflzlxMqEFEwaRLn/tBaeZD8pkgSCx+rnj4zwcgsRUJNdnvpMl2Z0EO4YQ3D108DYWmh1 qafUxBSTg/eSnBBBmTp26vs/RooJtXJGBbKlb01IO/1GhaoD19ZkuRQarQjrQU4H2ML1ge E2SA+o2RLVC2/MP2yMa1rEmsY81EwA5/+CAFucQyyLTHdC6ncQ15GaI5DYQCYw== 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 F35763101; Mon, 6 Jun 2022 18:08:16 +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 256I8GIx068444; Mon, 6 Jun 2022 18:08:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 256I8GEF068443; Mon, 6 Jun 2022 18:08:16 GMT (envelope-from git) Date: Mon, 6 Jun 2022 18:08:16 GMT Message-Id: <202206061808.256I8GEF068443@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ad52a7bb0393 - main - gcore: Remove unused elf_note_arm_vfp function. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: ad52a7bb0393163eb4e749005be0f6ca3c2c51c0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654538897; 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=bVCYb7LX/JfrbxhUZt4qVXddlMxeoKdAu6CGKomVW00=; b=KTC4waJSvAePlrnqjOfsGO6APIdIq9v3xyhGcj0l+vXcA70kfk2do1Qr6ukeNnJS/lBeTr wUmPWMI2PLiBOgYfrfm7Dwq3Vwlpy5NgIvlbtncPH7Moz3AFiRd36x1rzEBwWtNDWX1fsi LyqNFvXLNsYFcCMswghSD67AQQunknkKnjIr/CsayWwIzqOvG3y3d/rHVX/KK5NF/2we3L OttfUOKtv+2aBbmZMqMbVaxME+Na5T+/3037oUieDXZ1WokBeI1ou96k1qFPksTdrY3LtZ c1OXzpO0Ef9yAPVJskNdXloPFhXsy9OxUfW8HF6m5iYPCvGYq5wx0U3erodXiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654538897; a=rsa-sha256; cv=none; b=qhPKZALfd4tJGPpB1G1WVaMcikQKDqcY/3Mv9MplLw5ye+4Se93HD2opU4j47FP0ex/RsU 53QR1MuctGbnOxtvZ5ifGzo6tHLM6EINzHch6H/toC+h8aLS5cn/LYm8JS+K78FBM8W0wX Rd438xljgejJwjZPYbB5TlBxq8gt0dRGFzYD3xPkYwKxagG9BnVzA/Sg3Er+Mu5dYu/oZP r9OxwampkqW5ikdEUvXDBdebwzudMx6kGnjMoDoLCCjqpFlswbMFvzrPi+S2P7FOW0Is16 4jvxXeSNr3GajeT5lNr6X38v9U3H+vLpPl+em9ScE24nQrkYNFo1dSGlk+UUKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ad52a7bb0393163eb4e749005be0f6ca3c2c51c0 commit ad52a7bb0393163eb4e749005be0f6ca3c2c51c0 Author: John Baldwin AuthorDate: 2022-06-06 18:06:49 +0000 Commit: John Baldwin CommitDate: 2022-06-06 18:06:49 +0000 gcore: Remove unused elf_note_arm_vfp function. Fixes: add00c381e5c Use a regset for NT_ARM_VFP. --- 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)