MCPcopy Create free account
hub / github.com/Inori/GPCS4 / CommitCode

Method CommitCode

3rdParty/tinydbr/tinydbr.cpp:202–215  ·  view source on GitHub ↗

Writes the modified code from the debugger process into the target process

Source from the content-addressed store, hash-verified

200
201// Writes the modified code from the debugger process into the target process
202void 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
217template <typename T>
218void TinyDBR::CommitValueAtomicT(ModuleInfo* module, size_t start_offset)

Callers 2

OnModuleInstrumentedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected