git: ad52a7bb0393 - main - gcore: Remove unused elf_note_arm_vfp function.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Jun 2022 18:08:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ad52a7bb0393163eb4e749005be0f6ca3c2c51c0 commit ad52a7bb0393163eb4e749005be0f6ca3c2c51c0 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-06-06 18:06:49 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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)