Lines Matching refs:frame
117 backtrace_frame_data_t* frame = &frames_.at(num_frames);
118 frame->num = num_frames;
119 frame->pc = static_cast<uintptr_t>(pc);
120 frame->sp = static_cast<uintptr_t>(sp);
121 frame->stack_size = 0;
123 FillInMap(frame->pc, &frame->map);
124 // Check to see if we should skip this frame because it's coming
126 if (ucontext != nullptr || num_frames != 0 || !DiscardFrame(*frame)) {
129 // keeping the frame.
130 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset, &frame->map);
132 // Set the stack size for the previous frame.
134 prev->stack_size = frame->sp - prev->sp;
136 if (BacktraceMap::IsValid(frame->map)) {
137 frame->rel_pc = frame->pc - frame->map.start + frame->map.load_bias;
139 frame->rel_pc = frame->pc;
144 // Set the number of frames to zero to remove the frame added
146 // there should only be one frame in the vector.
152 if (frame->map.flags & PROT_DEVICE_MAP) {
157 FillInMap(frame->sp, &map);