blob: fe72724820b5e0ec1e95a7b06fc135f1e826fc12 [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 <lib/stdcompat/span.h>
#include <cstdint>
namespace __libc_sanitizer {
size_t BacktraceByFramePointer(cpp20::span<uintptr_t> pcs);
#if __has_feature(shadow_call_stack)
size_t BacktraceByShadowCallStack(cpp20::span<uintptr_t> pcs);
#else
inline size_t BacktraceByShadowCallStack(cpp20::span<uintptr_t> pcs) { return 0; }
#endif
} // namespace __libc_sanitizer