Lines Matching refs:Backtrace
26 #include <backtrace/Backtrace.h>
36 Backtrace* backtrace, uintptr_t base_addr, uint8_t* e_ident, std::string* build_id) {
42 if (backtrace->Read(base_addr + EI_NIDENT, reinterpret_cast<uint8_t*>(&hdr) + EI_NIDENT,
49 if (backtrace->Read(base_addr + hdr.e_phoff + i * hdr.e_phentsize,
59 if (backtrace->Read(addr, reinterpret_cast<uint8_t*>(&nhdr), sizeof(nhdr)) != sizeof(nhdr)) {
72 if (backtrace->Read(addr, build_id_data, nhdr.n_descsz) != nhdr.n_descsz) {
98 bool elf_get_build_id(Backtrace* backtrace, uintptr_t addr, std::string* build_id) {
101 if (backtrace->Read(addr, e_ident, SELFMAG) != SELFMAG) {
110 if (backtrace->Read(addr + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG) != EI_NIDENT - SELFMAG) {
115 return get_build_id<Elf32_Ehdr, Elf32_Phdr, Elf32_Nhdr>(backtrace, addr, e_ident, build_id);
117 return get_build_id<Elf64_Ehdr, Elf64_Phdr, Elf64_Nhdr>(backtrace, addr, e_ident, build_id);