Lines Matching refs:filename
234 const std::string& filename = map.name;
235 DebugFrameInfo* debug_frame = GetDebugFrameInFile(filename);
274 int found = dwarf_find_debug_frame(0, &di, ip, segbase, filename.c_str(), map.start, map.end);
468 static DebugFrameInfo* ReadDebugFrameFromFile(const std::string& filename);
470 DebugFrameInfo* BacktraceOffline::GetDebugFrameInFile(const std::string& filename) {
472 auto it = debug_frames_.find(filename);
476 if (debug_frame_missing_files_.find(filename) != debug_frame_missing_files_.end()) {
480 DebugFrameInfo* debug_frame = ReadDebugFrameFromFile(filename);
483 debug_frames_.emplace(filename, std::unique_ptr<DebugFrameInfo>(debug_frame));
485 debug_frame_missing_files_.insert(filename);
627 static bool IsValidElfPath(const std::string& filename) {
631 if (stat(filename.c_str(), &st) != 0 || !S_ISREG(st.st_mode)) {
634 FILE* fp = fopen(filename.c_str(), "reb");
679 llvm::object::OwningBinary<llvm::object::Binary> OpenEmbeddedElfFile(const std::string& filename) {
681 size_t pos = filename.find("!/");
685 std::string apk_file = filename.substr(0, pos);
686 std::string elf_file = filename.substr(pos + 2);
729 static DebugFrameInfo* ReadDebugFrameFromFile(const std::string& filename) {
731 if (filename.find("!/") != std::string::npos) {
732 owning_binary = OpenEmbeddedElfFile(filename);
734 if (!IsValidElfPath(filename)) {
737 auto binary_or_err = llvm::object::createBinary(llvm::StringRef(filename));