Jump to content

DBG C ReadMem D: Difference between revisions

From EDM2
Created page with "Debug Command 1 and 2 - Read Word Command ;Parameters *Pid= Process ID of debuggee *Addr= Address to read from *Cmd= DBG_C_ReadMem_I, or DBG_C_ReadMem_D, or DBG_C_ReadMe..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
Debug Command 1 and 2 - Read Word Command  
Debug Command 1 and 2 - Read Word Command


;Parameters  
;Parameters
*Pid= Process ID of debuggee
*Addr= Address to read from
*Cmd= DBG_C_ReadMem_I, or DBG_C_ReadMem_D, or DBG_C_ReadMem
The commands DBG_C_ReadMem_I, DBG_C_ReadMem_D, and DBG_C_ReadMem, are identical.


*Pid= Process ID of debuggee
;Returns:The word at the desired address is read, and stored into Value.
*Addr= Address to read from  
*Value= Word read from the specified address.
*Cmd= DBG_C_ReadMem_I, or DBG_C_ReadMem_D, or DBG_C_ReadMem


The commands DBG_C_ReadMem_I, DBG_C_ReadMem_D, and DBG_C_ReadMem, are identical.  
;Restrictions
You are unable to read from any memory outside user space.


;Returns
The high-order word of Value is set to zero.


The word at the desired address is read, and stored into Value.
[[Category:Debug Command]]
 
*Value= Word read from the specified address.
 
;Restrictions
 
You are unable to read from any memory outside user space.
 
The high-order word of Value is set to zero.
 
[[Category:DBG_C]]
{{DISPLAYTITLE:DBG_C_ReadMem_D}}
{{DISPLAYTITLE:DBG_C_ReadMem_D}}

Latest revision as of 12:25, 10 March 2020

Debug Command 1 and 2 - Read Word Command

Parameters
  • Pid= Process ID of debuggee
  • Addr= Address to read from
  • Cmd= DBG_C_ReadMem_I, or DBG_C_ReadMem_D, or DBG_C_ReadMem

The commands DBG_C_ReadMem_I, DBG_C_ReadMem_D, and DBG_C_ReadMem, are identical.

Returns
The word at the desired address is read, and stored into Value.
  • Value= Word read from the specified address.
Restrictions

You are unable to read from any memory outside user space.

The high-order word of Value is set to zero.