C# Class CsDebugScript.Process

The process being debugged.
Mostra file Open project: southpolenator/WinDbgCs Class Usage Examples

Private Properties

Property Type Description
CastVariableToUserType Variable
ClearMetadataCache void
DoReadAnsiString string
DoReadUnicodeString string
FromClrType CodeType
GetModuleByAddress Module
GetModuleByInnerAddress Module
GetModuleByName Module
GetUserTypeDescription UserTypeDescription[]
GetUserTypes List
Process System
ReadString string
UpdateModuleByNameCache void

Public Methods

Method Description
FindMemoryRegion ( ulong address ) : int

Finds the index of memory region where the specified address is located or -1 if not found.

GetGlobal ( string name ) : Variable

Gets the global variable.

GetPointerSize ( ) : uint

Gets the size of the pointer.

InvalidateProcessCache ( ) : void

Invalidates cache structures. Use when memory state changes (e.g. during live debugging).

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
CastVariableToUserType ( Variable variable ) : Variable

Casts the specified variable to a user type.

ClearMetadataCache ( ) : void

Clears the process metadata cache.

DoReadAnsiString ( int>.Tuple tuple ) : string

Does the actual ANSI string read.

DoReadUnicodeString ( int>.Tuple tuple ) : string

Does the actual unicode string read.

FromClrType ( Microsoft clrType ) : CodeType

Creates CodeType from the CLR type.

GetModuleByAddress ( ulong moduleAddress ) : Module

Gets the module located at the specified module address.

GetModuleByInnerAddress ( ulong address ) : Module

Gets the module that contains specified address in its address space.

GetModuleByName ( string name ) : Module

Gets the module with the specified name.

GetUserTypeDescription ( Type type ) : UserTypeDescription[]

Gets the user type description from the specified type.

GetUserTypes ( ) : List

Gets the user types.

Process ( uint id ) : System

Initializes a new instance of the Process class.

ReadString ( ulong address, int charSize, int length = -1 ) : string

Reads the string and caches it inside this object.

UpdateModuleByNameCache ( Module module, string name ) : void

Updates the cache of modules specified by the name.

Method Details

FindMemoryRegion() public method

Finds the index of memory region where the specified address is located or -1 if not found.
public FindMemoryRegion ( ulong address ) : int
address ulong The address.
return int

GetGlobal() public method

Gets the global variable.
Global variable wasn't found, name:
public GetGlobal ( string name ) : Variable
name string The name.
return Variable

GetPointerSize() public method

Gets the size of the pointer.
public GetPointerSize ( ) : uint
return uint

InvalidateProcessCache() public method

Invalidates cache structures. Use when memory state changes (e.g. during live debugging).
public InvalidateProcessCache ( ) : void
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string