blob: a5a128ecad09a4944ec78211cb256a59bd92142a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/String.h>
#include <LibDebug/DebugInfo.h>
namespace Symbolication {
struct Symbol {
FlatPtr address { 0 };
String name {};
u32 offset { 0 };
Vector<Debug::DebugInfo::SourcePosition> source_positions;
};
Optional<FlatPtr> kernel_base();
Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid);
Optional<Symbol> symbolicate(String const& path, FlatPtr address);
}
|