Lines Matching defs:map
40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map)
41 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
55 std::string Backtrace::GetFunctionName(uintptr_t pc, uintptr_t* offset, const backtrace_map_t* map) {
57 if (map == nullptr) {
59 map = &map_value;
61 // If no map is found, or this map is backed by a device, then return nothing.
62 if (map->start == 0 || (map->flags & PROT_DEVICE_MAP)) {
88 if (BacktraceMap::IsValid(frame->map)) {
89 relative_pc = BacktraceMap::GetRelativePc(frame->map, frame->pc);
90 if (!frame->map.name.empty()) {
91 map_name = frame->map.name.c_str();
94 map_name += StringPrintf(":%" PRIPTR "]", frame->map.start);
97 map_name = StringPrintf("<anonymous:%" PRIPTR ">", frame->map.start);
108 if (frame->map.offset != 0) {
109 line += " (offset " + StringPrintf("0x%" PRIxPTR, frame->map.offset) + ")";
122 void Backtrace::FillInMap(uintptr_t pc, backtrace_map_t* map) {
124 map_->FillIn(pc, map);
128 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) {
139 return new UnwindCurrent(pid, tid, map);
141 return new UnwindPtrace(pid, tid, map);
152 return "No map found";