blob: 26a23aebb36ae7873783c528c931885adde5b1fa [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cstddef>
#include <cstdint>
#include <span>
namespace __libc_sanitizer {
size_t BacktraceByFramePointer(std::span<uintptr_t> pcs);
#if __has_feature(shadow_call_stack)
size_t BacktraceByShadowCallStack(std::span<uintptr_t> pcs);
#else
inline size_t BacktraceByShadowCallStack(std::span<uintptr_t> pcs) { return 0; }
#endif
} // namespace __libc_sanitizer