Lines Matching defs:ctx

51     UnwindContext* ctx = reinterpret_cast<UnwindContext *>(arg);
52 if (ctx->map != nullptr && ctx->map->Contain(static_cast<uint64_t>(pc))) {
53 map = ctx->map;
54 DFXLOGU("map had matched by ctx, map name: %{public}s", map->name.c_str());
58 if (ctx->maps == nullptr || !ctx->maps->FindMapByAddr(pc, map) || (map == nullptr)) {
59 ctx->map = nullptr;
62 ctx->map = map;
108 UnwindContext* ctx = reinterpret_cast<UnwindContext *>(arg);
109 if ((ctx != nullptr) && (ctx->stackCheck == true) && (!IsValidFrame(addr, ctx->stackBottom, ctx->stackTop))) {
119 UnwindContext* ctx = reinterpret_cast<UnwindContext *>(arg);
120 if (ctx == nullptr) {
123 if (ctx->regs == nullptr || reg < 0 || reg >= (int)ctx->regs->RegsSize()) {
127 *val = static_cast<uintptr_t>((*(ctx->regs))[reg]);
133 UnwindContext *ctx = reinterpret_cast<UnwindContext *>(arg);
134 if (ctx == nullptr) {
139 if (ctx->map != nullptr && ctx->map->IsVdsoMap()) {
140 auto elf = ctx->map->GetElf(getpid());
145 ret = elf->FindUnwindTableInfo(pc, ctx->map, uti);
150 ctx->di = uti;
171 UnwindContext *ctx = reinterpret_cast<UnwindContext *>(arg);
172 if ((ctx == nullptr) || (ctx->pid <= 0)) {
176 if (ctx->map != nullptr && ctx->map->elf != nullptr) {
177 uintptr_t pos = ctx->map->GetRelPc(addr);
178 if (ctx->map->elf->Read(pos, val, sizeof(uintptr_t))) {
196 tmpVal = (unsigned long) ptrace(PTRACE_PEEKDATA, ctx->pid, tmpAddr, nullptr);
216 UnwindContext *ctx = reinterpret_cast<UnwindContext *>(arg);
217 if (ctx == nullptr) {
220 if (ctx->regs == nullptr || reg < 0 || reg >= (int)ctx->regs->RegsSize()) {
224 *val = static_cast<uintptr_t>((*(ctx->regs))[reg]);
231 UnwindContext *ctx = reinterpret_cast<UnwindContext *>(arg);
232 if (ctx == nullptr || ctx->map == nullptr) {
235 if (pc >= ctx->di.startPc && pc < ctx->di.endPc) {
237 uti = ctx->di;
241 auto elf = ctx->map->GetElf(ctx->pid);
246 int ret = elf->FindUnwindTableInfo(pc, ctx->map, uti);
248 ctx->di = uti;