line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#pragma once |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
#include |
4
|
|
|
|
|
|
|
#include |
5
|
|
|
|
|
|
|
#include |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
namespace panda { namespace backtrace { |
9
|
|
|
|
|
|
|
|
10
|
4216
|
|
|
|
|
|
struct SharedObjectInfo { |
11
|
|
|
|
|
|
|
std::uint64_t begin; |
12
|
|
|
|
|
|
|
std::uint64_t end; |
13
|
|
|
|
|
|
|
bool absolute; |
14
|
|
|
|
|
|
|
string name; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
SharedObjectInfo(std::uint64_t begin_, std::uint64_t end_, bool absolute_, string name_): |
18
|
|
|
|
|
|
|
begin{begin_}, end{end_}, absolute{absolute_}, name{name_}{} |
19
|
2108
|
|
|
|
|
|
SharedObjectInfo(const SharedObjectInfo&) = default; |
20
|
|
|
|
|
|
|
SharedObjectInfo(SharedObjectInfo&&) = default; |
21
|
|
|
|
|
|
|
|
22
|
267
|
|
|
|
|
|
inline std::uint64_t get_offset(std::uint64_t ip) noexcept { |
23
|
267
|
50
|
|
|
|
|
return absolute ? ip : ip - begin; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
using SharedObjectMap = std::vector; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
}} |