Writes the modified code from the debugger process into the target process
| 200 | |
| 201 | // Writes the modified code from the debugger process into the target process |
| 202 | void TinyDBR::CommitCode(ModuleInfo* module, size_t start_offset, size_t size) |
| 203 | { |
| 204 | if (!module->instrumented_code_remote) |
| 205 | return; |
| 206 | |
| 207 | if (start_offset + size > module->instrumented_code_size ) |
| 208 | { |
| 209 | FATAL("Not enough code space."); |
| 210 | } |
| 211 | |
| 212 | RemoteWrite(module->instrumented_code_remote + start_offset, |
| 213 | module->instrumented_code_local + start_offset, |
| 214 | size); |
| 215 | } |
| 216 | |
| 217 | template <typename T> |
| 218 | void TinyDBR::CommitValueAtomicT(ModuleInfo* module, size_t start_offset) |
no outgoing calls
no test coverage detected