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:
parent
10e7a12c26
commit
9e0d115989
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user