Fix world build for archs where __builtin_debugtrap() does not work.

The offending code was introduced in r313992.

Reported by:	rpokala
Approved by:	kib (mentor)
This commit is contained in:
Eric Badger 2017-02-22 04:35:07 +00:00
parent 10e7a12c26
commit 9e0d115989
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314075

View File

@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/user.h>
#include <sys/wait.h>
#include <errno.h>
#include <machine/cpufunc.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
@ -1690,7 +1691,7 @@ ATF_TC_BODY(ptrace__PT_KILL_breakpoint, tc)
ATF_REQUIRE((fpid = fork()) != -1);
if (fpid == 0) {
trace_me();
__builtin_debugtrap();
breakpoint();
exit(1);
}