feat update
Some checks failed
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m3s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 1m21s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m14s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m37s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m39s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 1m50s

This commit is contained in:
tqcq 2024-04-07 09:32:50 +00:00
parent f8827e1a54
commit 0dcbefc77f

View File

@ -16,7 +16,7 @@ InitializeSymbolizer(const char *argv0)
if (g_elf) { return; } if (g_elf) { return; }
int self_fd = open(argv0, O_RDONLY); int self_fd = open(argv0, O_RDONLY);
if (self_fd < 0) { return; } if (self_fd < 0) { return; }
LOGW(kTag, "open self({}) fd: {}", argv0, self_fd); LOGW("Symbolize", "open self({}) fd: {}", argv0, self_fd);
g_elf = new elf::elf(elf::create_mmap_loader(self_fd)); g_elf = new elf::elf(elf::create_mmap_loader(self_fd));
g_dwarf = new dwarf::dwarf(dwarf::elf::create_loader(*g_elf)); g_dwarf = new dwarf::dwarf(dwarf::elf::create_loader(*g_elf));
} }