• Home
  • Raw
  • Download

Lines Matching +full:resolve +full:- +full:cwd

3 // Use of this source code is governed by a BSD-style license that can be
55 } while (eintr_wrapper_result == -1 && errno == EINTR); \
66 } while (eintr_wrapper_result == -1 && errno == EINTR && \
116 int ok = -1;
187 // seq_file only writes out a page-sized amount on each call. Refer to header
192 if (fd == -1)
197 proc_maps->clear();
203 size_t pos = proc_maps->size();
204 proc_maps->resize(pos + kReadSize);
211 proc_maps->clear();
217 proc_maps->resize(pos + bytes_read);
239 if (i == lines.size() - 1)
251 char permissions[5] = {'\0'}; // Ensure NUL-terminated string.
260 // 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm
265 if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4c %llx %hhx:%hhx %ld %n", &region.start,
277 else if (permissions[0] != '-')
282 else if (permissions[1] != '-')
287 else if (permissions[2] != '-')
300 regions_out->swap(regions);
309 if (mem_fd == -1)
347 cur_base = r.start - phdr.p_vaddr;
436 scannedAddress -= region.base;
448 // This is only required when the current CWD does not match the initial CWD and could be replaced
449 // by storing the initial CWD state globally. It is only changed in vulkan_icd.cpp.
452 // Build path from CWD in case CWD matches executable directory
453 // but relative paths are from initial cwd.
454 const Optional<std::string> &cwd = angle::GetCWD();
455 if (!cwd.valid())
457 std::cerr << "Error getting CWD to print the backtrace." << std::endl;
462 std::string absolutePath = cwd.value();
475 // Remove the overlapping relative path from the CWD so we can build the full
508 "addr2line", "-s", "-p", "-f", "-C", "-e",
554 // First check if the a relative path simply resolved to an absolute one from cwd,
571 // This will resolve paths like `angledata/../libVkLayer_khronos_validation.so` to
584 // This will resolve `./out/Debug/angle_end2end_tests` to
585 // `/home/user/angle/out/Debug/angle_end2end_tests` when CWD is
588 // Since we do not store the initial CWD globally we need to reconstruct here
599 WARN() << "Could not resolve path for module with relative path "
606 WARN() << "Could not resolve path for module with absolute path " << resolvedModule;