This is an archive of the discontinued LLVM Phabricator instance.

Remove Linux sysroot dependencies of SVE PT macros
ClosedPublic

Authored by omjavaid on Jul 10 2020, 2:32 AM.

Details

Summary

SVE elf note data requires SVE PT macros for reading writing data. Same macros are used by Linux ptrace SVE register access.
This patch makes necessary changes to lldb/source/Plugins/Process/Linux/LinuxPTraceDefines_arm64sve.h in order to make them sysroot independent.

Diff Detail

Event Timeline

omjavaid created this revision.Jul 10 2020, 2:32 AM

To use this code from Process/elf-core, we also need to move this file. source/Plugins/Process/Utility is the best place we got for this right now.

lldb/source/Plugins/Process/Linux/LinuxPTraceDefines_arm64sve.h
9–10

While, moving the file, please also adjust the header guard (LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_FOO_H) -- it looks like this has raced with the header guard unification we did in lldb some time ago...

omjavaid updated this revision to Diff 277702.Jul 14 2020, 1:35 AM

This update addresses concerns raised in last iteration.

LGTM?

labath accepted this revision.Jul 14 2020, 1:54 AM
This revision is now accepted and ready to land.Jul 14 2020, 1:54 AM
omjavaid updated this revision to Diff 279152.Jul 20 2020, 2:17 AM

One minor last minute change.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2020, 2:55 AM