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