aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-07-08 06:21:05 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-07-08 06:21:05 +0000
commit0de175b8d6722cca2221bbb52772f975058ac183 (patch)
treec83ee5e85562d1c1952d7a86d562ad7fa5808348 /gcc/ada/gcc-interface/trans.c
parent7ef004023510d0c88e1a8bb718ee2848c1358ea4 (diff)
downloadgcc-0de175b8d6722cca2221bbb52772f975058ac183.zip
gcc-0de175b8d6722cca2221bbb52772f975058ac183.tar.gz
gcc-0de175b8d6722cca2221bbb52772f975058ac183.tar.bz2
Make guality.h handle Yama restricted ptrace mode
guality.exp is silently skipped on Linux systems with kernel.yama.ptrace_scope=1 because gdb fails to attach to the sanity check test. This patch uses PR_SET_PTRACER (where available) to avoid this. prctl was apparently added in Linux 2.1.57, so I don't think we need any tests other than __linux for the #include. 2019-07-08 Richard Sandiford <richard.sandiford@arm.com> gcc/testsuite/ * gcc.dg/guality/guality.h: Include <sys/prctl.h> on Linux targets. (main): Use PR_SET_PTRACER where available. From-SVN: r273192
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
0 files changed, 0 insertions, 0 deletions