]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 281266:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 2 Jun 2015 14:54:53 +0000 (14:54 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 2 Jun 2015 14:54:53 +0000 (14:54 +0000)
commit3d3d908d74c82dac4cb85698ca1ee0ba4a4ff5f1
treef5b76ef5f39fba89a6da6cb1a11b89d1dd7dd5b7
parent5290705c0a0abf4d1c294251407a0fd809e7978e
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@283910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/freebsd32/freebsd32.h
sys/ia64/include/reg.h
sys/mips/include/reg.h
sys/powerpc/include/reg.h
sys/sparc64/include/reg.h
sys/sys/procfs.h
sys/x86/include/reg.h
usr.bin/gcore/elf32core.c