summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-06-02 14:54:53 +0000
committerjhb <jhb@FreeBSD.org>2015-06-02 14:54:53 +0000
commitcb2edec922e11c0dcda53db951d9f33ae4096cd5 (patch)
treef5b76ef5f39fba89a6da6cb1a11b89d1dd7dd5b7 /usr.bin/gcore
parentc89b9bba4337ee06f879632c707eee953d70d3a6 (diff)
downloadFreeBSD-src-cb2edec922e11c0dcda53db951d9f33ae4096cd5.zip
FreeBSD-src-cb2edec922e11c0dcda53db951d9f33ae4096cd5.tar.gz
MFC 281266:
Move the 32-bit compatible procfs types from freebsd32.h to <sys/procfs.h> and export them to userland. - Define __HAVE_REG32 on platforms that define a reg32 structure and check for this in <sys/procfs.h> to control when to export prstatus32, etc. - Add prstatus32_t and prpsinfo32_t typedefs for the 32-bit structures. libbfd looks for these types, and having them fixes 'gcore' in gdb of a 32-bit process on a 64-bit platform. - Use the structure definitions from <sys/procfs.h> in gcore's elf32 core dump code instead of duplicating the definitions.
Diffstat (limited to 'usr.bin/gcore')
-rw-r--r--usr.bin/gcore/elf32core.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/usr.bin/gcore/elf32core.c b/usr.bin/gcore/elf32core.c
index de48500..d13a4ef 100644
--- a/usr.bin/gcore/elf32core.c
+++ b/usr.bin/gcore/elf32core.c
@@ -8,24 +8,6 @@
#include <sys/procfs.h>
-struct prpsinfo32 {
- int pr_version;
- u_int pr_psinfosz;
- char pr_fname[PRFNAMESZ+1];
- char pr_psargs[PRARGSZ+1];
-};
-
-struct prstatus32 {
- int pr_version;
- u_int pr_statussz;
- u_int pr_gregsetsz;
- u_int pr_fpregsetsz;
- int pr_osreldate;
- int pr_cursig;
- pid_t pr_pid;
- struct reg32 pr_reg;
-};
-
#define ELFCORE_COMPAT_32 1
#include "elfcore.c"
OpenPOWER on IntegriCloud