Jump to content

DBG C ReadReg: Difference between revisions

From EDM2
Created page with "Debug Command 3 - Read Register Set Command ;Parameters *Pid= Process ID of debuggee *Tid= Thread ID of register set to read *Cmd= DBG_C_ReadReg If Tid is zero and the..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
Debug Command 3 - Read Register Set Command  
{{DISPLAYTITLE:DBG_C_ReadReg}}
 
Debug Command 3 - Read Register Set Command
;Parameters
 
*Pid= Process ID of debuggee
*Tid= Thread ID of register set to read
*Cmd= DBG_C_ReadReg


If Tid is zero and the debuggee is stopped, the register set comes from the active debuggee thread. If Tid is zero and the debuggee is executing, ERROR_INVALID_THREADID is returned.  
;Parameters
*Pid= Process ID of debuggee
*Tid= Thread ID of register set to read
*Cmd= DBG_C_ReadReg
If Tid is zero and the debuggee is stopped, the register set comes from the active debuggee thread. If Tid is zero and the debuggee is executing, ERROR_INVALID_THREADID is returned.


;Returns  
;Returns
The register set in the DosDebug Buffer structure is updated, including the selector information as follows:
*Tid= Thread ID corresponding to the register set
*MTE= Program module's MTE (Module Table Entry) handle


The register set in the DosDebug Buffer structure is updated, including the selector information as follows:
[[Category:Debug Command]]
 
*Tid= Thread ID corresponding to the register set
*MTE= Program module's MTE (Module Table Entry) handle
 
 
[[Category:DBG_C]]
{{DISPLAYTITLE:DBG_C_ReadReg}}

Latest revision as of 13:14, 10 March 2020

Debug Command 3 - Read Register Set Command

Parameters
  • Pid= Process ID of debuggee
  • Tid= Thread ID of register set to read
  • Cmd= DBG_C_ReadReg

If Tid is zero and the debuggee is stopped, the register set comes from the active debuggee thread. If Tid is zero and the debuggee is executing, ERROR_INVALID_THREADID is returned.

Returns

The register set in the DosDebug Buffer structure is updated, including the selector information as follows:

  • Tid= Thread ID corresponding to the register set
  • MTE= Program module's MTE (Module Table Entry) handle