/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Symbolication { struct Symbol { FlatPtr address { 0 }; DeprecatedString name {}; DeprecatedString object {}; u32 offset { 0 }; Vector source_positions; bool operator==(Symbol const&) const = default; }; enum class IncludeSourcePosition { Yes, No }; Optional kernel_base(); Vector symbolicate_thread(pid_t pid, pid_t tid, IncludeSourcePosition = IncludeSourcePosition::Yes); Optional symbolicate(DeprecatedString const& path, FlatPtr address, IncludeSourcePosition = IncludeSourcePosition::Yes); }