Lines Matching refs:word_t
34 static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) { in PtraceRead()
39 if (*out_value == static_cast<word_t>(-1) && errno) { in PtraceRead()
46 bool BacktracePtrace::ReadWord(uintptr_t ptr, word_t* out_value) { in ReadWord()
78 word_t data_word; in Read()
79 size_t align_bytes = addr & (sizeof(word_t) - 1); in Read()
81 if (!PtraceRead(Tid(), addr & ~(sizeof(word_t) - 1), &data_word)) { in Read()
84 size_t copy_bytes = MIN(sizeof(word_t) - align_bytes, bytes); in Read()
92 size_t num_words = bytes / sizeof(word_t); in Read()
97 memcpy(buffer, &data_word, sizeof(word_t)); in Read()
98 buffer += sizeof(word_t); in Read()
99 addr += sizeof(word_t); in Read()
100 bytes_read += sizeof(word_t); in Read()
103 size_t left_over = bytes & (sizeof(word_t) - 1); in Read()