Lines Matching defs:fileAddr

71 static bool RegisterStubAnToDebuggerImpl(const char *fileAddr);
73 void RegisterStubAnToDebugger(const char *fileAddr)
77 while (entry != nullptr && entry->file_addr != fileAddr) {
83 if (RegisterStubAnToDebuggerImpl(fileAddr)) {
90 void UnregisterStubAnFromDebugger(const char *fileAddr)
94 while (entry != nullptr && entry->file_addr != fileAddr) {
126 uintptr_t fileAddr;
174 StubAnInfo CollectStubAnInfo(uintptr_t fileAddr)
176 auto *ehdr = reinterpret_cast<Elf64_Ehdr *>(fileAddr);
177 auto *shdrTab = reinterpret_cast<Elf64_Shdr *>(fileAddr + ehdr->e_shoff);
180 const char *shstrtab = reinterpret_cast<const char *>(fileAddr + shStrHdr->sh_offset);
199 Elf64_Sym *symtab = reinterpret_cast<Elf64_Sym *>(fileAddr + symtabHdr->sh_offset);
200 const char *strtab = reinterpret_cast<const char *>(fileAddr + strtabHdr->sh_offset);
221 fileAddr, ehdr, shdrTab, shStrIdx, shStrHdr, textHdr, asmstubHdr, symtabHdr, strtabHdr,
236 reinterpret_cast<void *>(info.fileAddr + info.strtabHdr->sh_offset), info.strtabHdr->sh_size) != EOK) {
248 Elf64_Sym *symtab = reinterpret_cast<Elf64_Sym *>(info.fileAddr + info.symtabHdr->sh_offset);
249 const char *strtab = reinterpret_cast<const char *>(info.fileAddr + info.strtabHdr->sh_offset);
296 uintptr_t textAddr = info.textHdr->sh_offset + info.fileAddr;
301 newPhdr->p_offset = textAddr - info.fileAddr;
350 newTextHdr->sh_addr = info.fileAddr + info.textHdr->sh_offset;
366 bool CreateDebuggerElf(uintptr_t fileAddr, void **result, uint64_t *elfSize)
368 auto info = CollectStubAnInfo(fileAddr);
385 writeU64(addrOff, info.bcStubBegin + fileAddr);
422 static bool RegisterStubAnToDebuggerImpl(const char *fileAddr)
425 if (!CreateDebuggerElf(reinterpret_cast<uintptr_t>(fileAddr),
431 entry->file_addr = fileAddr;
452 void RegisterStubAnToDebugger(const char *fileAddr)
454 LOG_COMPILER(INFO) << "MACOS doesn't support RegisterStubAnToDebugger, fileAddr is" << fileAddr;
457 void UnregisterStubAnFromDebugger(const char *fileAddr)
459 LOG_COMPILER(INFO) << "MACOS doesn't support RegisterStubAnToDebugger, fileAddr is" << fileAddr;