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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Fix comments in file headers, add "static" to file-local variable.
lib/sanitizer_common/sanitizer_stacktrace_printer.cc | ||
---|---|---|
27 | Done | |
32 | Do you mean nullptr value for "format" string? Well, in future it will be a runtime flag, specified by the user, so I thought it would be nice to make this special case have more meaningful representation. | |
lib/sanitizer_common/sanitizer_stacktrace_printer.h | ||
11 | Done |
..., and other sanitizers