This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Split stacktrace/symbolizer: Windows unwind
ClosedPublic

Authored by cryptoad on Mar 22 2018, 12:13 PM.

Details

Summary

The purpose of this set of changes is to separate stackframe/symbolizer support into their own RT within sanitizer_common.
Sanitizers with no use for those could then be built without the extraneous dependencies pulled in by the default visibility interface functions.
I am aiming to do small changes for specific platforms.

In this one, we split the unwind functions from sanitizer_win.cc into their own sanitizer_unwind_win.cc.

Diff Detail

Event Timeline

cryptoad created this revision.Mar 22 2018, 12:13 PM
rnk accepted this revision.Mar 22 2018, 12:48 PM

lgtm

I guess you are reusing the concept of sanitizer_common_libcdep even though these are not really libc dependencies.

lib/sanitizer_common/sanitizer_unwind_win.cc
29

I don't think we indent for namespaces, do we? Besides, this is a method, we only need using namespace __sanitizer;.

This revision is now accepted and ready to land.Mar 22 2018, 12:48 PM
cryptoad updated this revision to Diff 139525.Mar 22 2018, 3:12 PM

Use using namespace __sanitizer; and correct the indentation.

cryptoad marked an inline comment as done.Mar 22 2018, 3:12 PM
alekseyshl added inline comments.Mar 22 2018, 5:07 PM
lib/sanitizer_common/CMakeLists.txt
2

Why is it here and not handled as other Windows specific files in "if(WIN32)" below? Too much hassle?

cryptoad added inline comments.Mar 23 2018, 8:24 AM
lib/sanitizer_common/CMakeLists.txt
2

As of now it's a temporary placement.
All stacktrace/symbolzier related files once it's all split will be in SANITIZER_SYMBOLIZE_SOURCES (or equivalent).

cryptoad updated this revision to Diff 139748.Mar 25 2018, 2:21 PM

Converted line endings.

alekseyshl accepted this revision.Mar 27 2018, 3:53 PM
cryptoad updated this revision to Diff 140964.Apr 4 2018, 8:24 AM

Rebasing.

Herald added subscribers: Restricted Project, delcypher. · View Herald TranscriptApr 4 2018, 8:24 AM
This revision was automatically updated to reflect the committed changes.