Jump to content

DBG C AddrToObject: Difference between revisions

From EDM2
Created page with "Debug Command 28 - Get Memory Object Information Command ;Parameters *Pid= Process ID of debuggee *Cmd= DBG_C_AddrToObject *Addr= Debuggee Linear Address ;Returns *Buf..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
Debug Command 28 - Get Memory Object Information Command  
Debug Command 28 - Get Memory Object Information Command


;Parameters  
;Parameters
*Pid= Process ID of debuggee  
*Pid= Process ID of debuggee
*Cmd= DBG_C_AddrToObject  
*Cmd= DBG_C_AddrToObject
*Addr= Debuggee Linear Address  
*Addr= Debuggee Linear Address


;Returns  
;Returns
*Buffer= Starting address of object  
*Buffer= Starting address of object
*Len= Size of object in bytes  
*Len= Size of object in bytes
*Value= Object flags  
*Value= Object flags
*MTE= Module Table Entry handle of module if DBG_O_OBJMTE is set in the Value field object flags.  
*MTE= Module Table Entry handle of module if DBG_O_OBJMTE is set in the Value field object flags.


The object flags are defined as follows:  
The object flags are defined as follows:
:DBG_O_OBJMTE (10000000h) - Object is part of a module
Information about the memory object containing the linear address is returned. If the linear address is not part of an object, DBG_N_Error is returned with ERROR_INVALID_OBJECT in the Value field.


:DBG_O_OBJMTE (10000000h) - Object is part of a module
The Addr field will be left unchanged.
 
Information about the memory object containing the linear address is returned. If the linear address is not part of an object, DBG_N_Error is returned with ERROR_INVALID_OBJECT in the Value field.
 
The Addr field will be left unchanged.  


[[Category:DBG_C]]
[[Category:DBG_C]]
{{DISPLAYTITLE:DBG_C_AddrToObject}}
{{DISPLAYTITLE:DBG_C_AddrToObject}}

Revision as of 12:12, 10 March 2020

Debug Command 28 - Get Memory Object Information Command

Parameters
  • Pid= Process ID of debuggee
  • Cmd= DBG_C_AddrToObject
  • Addr= Debuggee Linear Address
Returns
  • Buffer= Starting address of object
  • Len= Size of object in bytes
  • Value= Object flags
  • MTE= Module Table Entry handle of module if DBG_O_OBJMTE is set in the Value field object flags.

The object flags are defined as follows:

DBG_O_OBJMTE (10000000h) - Object is part of a module

Information about the memory object containing the linear address is returned. If the linear address is not part of an object, DBG_N_Error is returned with ERROR_INVALID_OBJECT in the Value field.

The Addr field will be left unchanged.