aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-08-22 21:43:21 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-08-22 21:43:21 +0000
commite21f96a811d9776f976751b01ac7975eeffcdeb2 (patch)
tree67fd60297b13b12d704966043c751b12801f2c71 /lib/libthread_db
parent428925b5f20540449776e217fd08078b89177147 (diff)
downloadsrc-e21f96a811d9776f976751b01ac7975eeffcdeb2.tar.gz
src-e21f96a811d9776f976751b01ac7975eeffcdeb2.zip
mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUM
machine/regnum.h ends up being included by sys/procfs.h and sys/ptrace.h via machine/reg.h. Many of the regnum definitions are too short and too generic to be exposing to any userland application including one of these two headers. Moreover, these actively cause build failures in googletest (template <typename T1 ...> expanding to template <typename 9 ...>). Hide the definitions behind _KERNEL or _WANT_MIPS_REGNUM, and patch all of the userland consumers to define as needed. Discussed with: imp, jhb Reviewed by: imp, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21330
Notes
Notes: svn path=/head/; revision=351409
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/arch/mips/libpthread_md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthread_db/arch/mips/libpthread_md.c b/lib/libthread_db/arch/mips/libpthread_md.c
index cef786a32887..1ded66d1c3fe 100644
--- a/lib/libthread_db/arch/mips/libpthread_md.c
+++ b/lib/libthread_db/arch/mips/libpthread_md.c
@@ -33,6 +33,7 @@
__FBSDID("$FreeBSD$");
#include <sys/types.h>
+#define _WANT_MIPS_REGNUM
#include <sys/procfs.h>
#include <ucontext.h>
#include <string.h>