Jump to content

DBG C WriteMem I: Difference between revisions

From EDM2
Created page with "Debug Command 4 and 5 - Write Word Command ;Parameters *Pid= Process ID of debuggee *Addr= Address to write to *Value= Word to write *Cmd= DBG_C_WriteMem_I, or DBG_C_Wri..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Debug Command 4 and 5 - Write Word Command  
{{DISPLAYTITLE:DBG_C_WriteMem_I}}
Debug Command 4 and 5 - Write Word Command


;Parameters  
;Parameters
*Pid= Process ID of debuggee  
*Pid= Process ID of debuggee
*Addr= Address to write to  
*Addr= Address to write to
*Value= Word to write  
*Value= Word to write
*Cmd= DBG_C_WriteMem_I, or DBG_C_WriteMem_D, or DBG_C_WriteMem_I  
*Cmd= DBG_C_WriteMem_I, or DBG_C_WriteMem_D, or DBG_C_WriteMem_I
The commands DBG_C_WriteMem_I, DBG_C_WriteMem_D, and DBG_C_WriteMem_I are identical.


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.


;Returns
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 word in Value is written to the specified address.  
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.


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.  
;Restrictions
You are unable to write to any memory outside user space.


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.  
The high-order word of Value is ignored.


;Restrictions
[[Category:Debug Command]]
 
You are unable to write to any memory outside user space.
 
The high-order word of Value is ignored.
 
[[Category:DBG_C]]
{{DISPLAYTITLE:DBG_C_WriteMem_I}}

Latest revision as of 17:10, 10 March 2020

Debug Command 4 and 5 - Write Word Command

Parameters
  • Pid= Process ID of debuggee
  • Addr= Address to write to
  • Value= Word to write
  • Cmd= DBG_C_WriteMem_I, or DBG_C_WriteMem_D, or DBG_C_WriteMem_I

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.