Home
last modified time | relevance | path

Searched refs:tmpAddr (Results 1 – 2 of 2) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
Ddfx_memory.cpp59 uintptr_t tmpAddr = addr; in Read() local
61 if (val == nullptr || __builtin_add_overflow(tmpAddr, size, &maxSize)) { in Read()
68 size_t alignBytes = tmpAddr & (static_cast<size_t>(alignBytes_) - 1); in Read()
70 uintptr_t alignedAddr = tmpAddr & (~(static_cast<uintptr_t>(alignBytes_)) - 1); in Read()
80 tmpAddr += copyBytes; in Read()
87 …if (!ReadMem(tmpAddr, &tmpVal) || memcpy_s(val, sizeof(uintptr_t), &tmpVal, sizeof(uintptr_t)) != … in Read()
91 tmpAddr += sizeof(uintptr_t); in Read()
96 if (!ReadMem(tmpAddr, &tmpVal) || memcpy_s(val, leftOver, &tmpVal, leftOver) != 0) { in Read()
99 tmpAddr += leftOver; in Read()
103 addr = tmpAddr; in Read()
Ddfx_accessors.cpp159 uintptr_t tmpAddr = ((i == 0) ? addr : addr + FOUR_BYTES); in AccessMem() local
162 tmpVal = (unsigned long) ptrace(PTRACE_PEEKDATA, ctx->pid, tmpAddr, nullptr); in AccessMem()