Debug Command 4 and 5 - Write Word Command
Parameters
Pid
The commands DBG_C_WriteMem_I, DBG_C_WriteMem_D, and DBG_C_WriteMem_I are identical.
Returns
The word in Value is written to the specified address.
In the case of a write to shared read-only memory, the memory is converted to private, and any set dynamic RAS tracepoints are removed from that memory, before the write is performed.
The area will continue to be shared by other processes, if any. In this way, breakpoints may be set in the debuggee without affecting the other modules.
Restrictions
You are unable to write to any memory outside user space.
The high-order word of Value is ignored.