Fix libproc test case to work with clang premature optimization
observed with -O2 (used by default). Avoid function inlining for t1_bkpt_t on which we set a breakpoint. Otherwise the address of the function is never called thus the breakpoint never triggers. Reported by: zont Reviewed by: rpaulo
This commit is contained in:
parent
9b46c215ce
commit
55e18ebdf3
@ -36,7 +36,7 @@
|
||||
#include <string.h>
|
||||
#include <libproc.h>
|
||||
|
||||
int
|
||||
int __noinline
|
||||
t1_bkpt_t()
|
||||
{
|
||||
printf("TEST OK\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user