//===-- sanitizer_symbolizer_markup_constants.h //-----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is shared between various sanitizers' runtime libraries. // // Define string formats and limits for the markup symbolizer. //===----------------------------------------------------------------------===// #ifndef SANITIZER_SYMBOLIZER_MARKUP_CONSTANTS_H #define SANITIZER_SYMBOLIZER_MARKUP_CONSTANTS_H #include "sanitizer_internal_defs.h" namespace __sanitizer { // See the spec at: // https://fuchsia.googlesource.com/zircon/+/master/docs/symbolizer_markup.md // This is used by UBSan for type names, and by ASan for global variable names. constexpr const char *kFormatDemangle = …; constexpr uptr kFormatDemangleMax = …; // Arbitrary. // Function name or equivalent from PC location. constexpr const char *kFormatFunction = …; constexpr uptr kFormatFunctionMax = …; // More than big enough for 64-bit hex. // Global variable name or equivalent from data memory address. constexpr const char *kFormatData = …; // One frame in a backtrace (printed on a line by itself). constexpr const char *kFormatFrame = …; // Module contextual element. constexpr const char *kFormatModule = …; // mmap for a module segment. constexpr const char *kFormatMmap = …; // Dump trigger element. #define FORMAT_DUMPFILE … } // namespace __sanitizer #endif // SANITIZER_SYMBOLIZER_MARKUP_CONSTANTS_H