HomePhabricator

[Sanitizer] Introduce generic stack frame rendering machinery

Description

[Sanitizer] Introduce generic stack frame rendering machinery

Summary:
This commit introduces function __sanitizer::RenderFrame()
that allows to render the contents of AddressInfo (essentially, symbolized stack frame)
using the custom format string. This function can be used to
implement stack frame formatting for both ThreadSanitizer and
generic StackTrace::Print(), used in another places. This paves the
way towards allowing user to control the format of stack frames,
obtaining them in any format he desires, and/or enforcing the consistent
output from all sanitizers.

Test Plan: compiler-rt test suite

Reviewers: kcc

Reviewed By: kcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6140

Details

Committed
samsonovNov 5 2014, 2:44 PM
Reviewer
kcc
Differential Revision
D6140: [Sanitizer] Introduce generic stack frame rendering machinery
Parents
rL221408: [mips64] Fix MIPS64 exception personality encoding
Branches
Unknown
Tags
Unknown

Event Timeline