| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | KittyIOFile destIO(destination, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0666); |
| 111 | if (!destIO.open()) |
| 112 | { |
| 113 | KITTY_LOGE("dumpMemRange: failed opening destination (%s).", destIO.lastStrError().c_str()); |
| 114 | return false; |
| 115 | } |
| 116 | |
| 117 | std::vector<char> buffer(KT_IO_CHUNK_SIZE); |
| 118 | uintptr_t current = start; |