forked from OSchip/llvm-project
Make memory dump same as the one in asan.
Shadow memory (and short granules) are not prepended with memory address and arrow at the end of line is removed. Differential Revision: https://reviews.llvm.org/D70707
This commit is contained in:
parent
0d3d4d3b0f
commit
2045d2c90e
|
@ -371,12 +371,13 @@ static void PrintTagInfoAroundAddr(tag_t *tag_ptr, uptr num_rows,
|
|||
InternalScopedString s(GetPageSizeCached() * 8);
|
||||
for (tag_t *row = beg_row; row < end_row; row += row_len) {
|
||||
s.append("%s", row == center_row_beg ? "=>" : " ");
|
||||
s.append("%p:", row);
|
||||
for (uptr i = 0; i < row_len; i++) {
|
||||
s.append("%s", row + i == tag_ptr ? "[" : " ");
|
||||
print_tag(s, &row[i]);
|
||||
s.append("%s", row + i == tag_ptr ? "]" : " ");
|
||||
}
|
||||
s.append("%s\n", row == center_row_beg ? "<=" : " ");
|
||||
s.append("\n");
|
||||
}
|
||||
Printf("%s", s.data());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue