This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt sanitizer] Use our own PTRACE_GETREGSET if it does not exist.
ClosedPublic

Authored by jeroen.dobbelaere on Nov 18 2020, 12:17 AM.

Details

Summary

On RH66 does not support 'PTRACE_GETREGSET'. This change makes this part of compiler-rt build again on older os-es

Diff Detail

Event Timeline

jeroen.dobbelaere requested review of this revision.Nov 18 2020, 12:17 AM
vitalybuka added inline comments.Nov 18 2020, 1:04 AM
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
490–495

maybe something like this?

Adapted to define PTRACE_GETREGSET ourselves if it is not available.

jeroen.dobbelaere marked an inline comment as done.Dec 3 2020, 6:27 AM
jeroen.dobbelaere retitled this revision from [compiler-rt sanitizer] Only use PTRACE_GETREGSET if it exists to [compiler-rt sanitizer] Use our own PTRACE_GETREGSET if it does not exist..Dec 3 2020, 6:30 AM
vitalybuka accepted this revision.Dec 9 2020, 12:29 AM
This revision is now accepted and ready to land.Dec 9 2020, 12:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 1:08 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript