]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the 32-bit compatible procfs types from freebsd32.h to <sys/procfs.h>
authorjhb <jhb@FreeBSD.org>
Wed, 8 Apr 2015 16:30:45 +0000 (16:30 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 8 Apr 2015 16:30:45 +0000 (16:30 +0000)
commit148355cbb6ce50f95c2561d8e3109dcea5599809
treea1dea0225d1fa16c515ed09d8f0b6b25343920ea
parent4317a349c054c2ed36fe2b36a19d92a34ed818b2
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.

Differential Revision: https://reviews.freebsd.org/D2142
Reviewed by: kib, nathanw (powerpc bits)
MFC after: 1 week
sys/compat/freebsd32/freebsd32.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