git: d2a3c30a511d - main - gcore: Remove unused typedefs.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Jun 2022 17:06:32 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d2a3c30a511d4802412a102e9fa44f810605a872 commit d2a3c30a511d4802412a102e9fa44f810605a872 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-06-30 17:03:32 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-06-30 17:04:49 +0000 gcore: Remove unused typedefs. These are no longer needed after commit 4965ac059da1 which used PT_GETREGSET to fetch NT_PRSTATUS and NT_FPREGSET. Reviewed by: markj, emaste MFC after: 2 weeks Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D35665 --- usr.bin/gcore/elfcore.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/usr.bin/gcore/elfcore.c b/usr.bin/gcore/elfcore.c index e5d7afd3f440..8a6fdb642aeb 100644 --- a/usr.bin/gcore/elfcore.c +++ b/usr.bin/gcore/elfcore.c @@ -84,18 +84,12 @@ struct sseg_closure { }; #ifdef ELFCORE_COMPAT_32 -typedef struct fpreg32 elfcore_fpregset_t; -typedef struct reg32 elfcore_gregset_t; typedef struct prpsinfo32 elfcore_prpsinfo_t; -typedef struct prstatus32 elfcore_prstatus_t; typedef struct ptrace_lwpinfo32 elfcore_lwpinfo_t; static void elf_convert_lwpinfo(struct ptrace_lwpinfo32 *pld, struct ptrace_lwpinfo *pls); #else -typedef fpregset_t elfcore_fpregset_t; -typedef gregset_t elfcore_gregset_t; typedef prpsinfo_t elfcore_prpsinfo_t; -typedef prstatus_t elfcore_prstatus_t; typedef struct ptrace_lwpinfo elfcore_lwpinfo_t; #define elf_convert_lwpinfo(d,s) *d = *s #endif