This is an archive of the discontinued LLVM Phabricator instance.

Fix #if tests for PTRACE_GETREGS and others.
ClosedPublic

Authored by foad on Nov 11 2015, 2:35 AM.

Details

Summary

On PowerPC64 Linux PTRACE_GETREGS is a #define and PT_GETREGS is not.
On other systems it's the other way round. Extend the #ifs to check for
both PTRACE_* and PT_*.

This fixes test/sanitizer_common/TestCases/Linux/ptrace.cc when msan is
enabled for PowerPC64.

Diff Detail

Event Timeline

foad updated this revision to Diff 39886.Nov 11 2015, 2:35 AM
foad retitled this revision from to Fix #if tests for PTRACE_GETREGS and others..
foad updated this object.
foad added reviewers: samsonov, zatrazz, kcc, eugenis.
foad added a subscriber: llvm-commits.
samsonov accepted this revision.Nov 11 2015, 6:41 AM
samsonov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 11 2015, 6:41 AM
foad closed this revision.Nov 11 2015, 6:43 AM