C# Class msos.CommandExecutionContext

Inheritance: IDisposable
ファイルを表示 Open project: goldshtn/msos Class Usage Examples

Public Methods

Method Description
CommandExecutionContext ( ) : System
CreateTemporaryDbgEngTarget ( ) : Microsoft.Diagnostics.Runtime.DataTarget

Creates a temporary DbgEng DataTarget. It is used for a single command's execution, such as !lm or !mk, and disposed immediately thereafter. If there is already a persistent DbgEng DataTarget, i.e. the debugger is currently in native DbgEng "mode", this method fails.

Dispose ( ) : void
EnterDbgEngNativeMode ( ) : void

Creates a persistent DbgEng DataTarget that can be used to execute multiple commands (remembers state). While this DataTarget is in place, msos is placed in native DbgEng "mode", and accepts only DbgEng commands.

ExecuteCommand ( string inputCommand ) : void
ExecuteOneCommand ( string command ) : void
ExitDbgEngNativeMode ( ) : void
GetTypeByMetadataToken ( string moduleName, int mdTypeDefToken ) : ClrType
RemoveTemporaryAliases ( ) : void
Write ( string format ) : void
WriteError ( string value ) : void
WriteErrorLine ( string format ) : void
WriteInfo ( string value ) : void
WriteInfoLine ( string format ) : void
WriteLine ( ) : void
WriteLine ( string format ) : void
WriteLink ( string text, string command ) : void
WriteWarning ( string value ) : void
WriteWarningLine ( string format ) : void

Private Methods

Method Description
AddTemporaryAlias ( string command ) : string
CreateDbgEngDataTargetImpl ( ) : Microsoft.Diagnostics.Runtime.DataTarget
GetAllCommandTypes ( ) : System.Type[]
InitParserIfNecessary ( ) : void
IsCommandIsSupportedForThisTarget ( Type type ) : bool

Method Details

CommandExecutionContext() public method

public CommandExecutionContext ( ) : System
return System

CreateTemporaryDbgEngTarget() public method

Creates a temporary DbgEng DataTarget. It is used for a single command's execution, such as !lm or !mk, and disposed immediately thereafter. If there is already a persistent DbgEng DataTarget, i.e. the debugger is currently in native DbgEng "mode", this method fails.
public CreateTemporaryDbgEngTarget ( ) : Microsoft.Diagnostics.Runtime.DataTarget
return Microsoft.Diagnostics.Runtime.DataTarget

Dispose() public method

public Dispose ( ) : void
return void

EnterDbgEngNativeMode() public method

Creates a persistent DbgEng DataTarget that can be used to execute multiple commands (remembers state). While this DataTarget is in place, msos is placed in native DbgEng "mode", and accepts only DbgEng commands.
public EnterDbgEngNativeMode ( ) : void
return void

ExecuteCommand() public method

public ExecuteCommand ( string inputCommand ) : void
inputCommand string
return void

ExecuteOneCommand() public method

public ExecuteOneCommand ( string command ) : void
command string
return void

ExitDbgEngNativeMode() public method

public ExitDbgEngNativeMode ( ) : void
return void

GetTypeByMetadataToken() public method

public GetTypeByMetadataToken ( string moduleName, int mdTypeDefToken ) : ClrType
moduleName string
mdTypeDefToken int
return ClrType

RemoveTemporaryAliases() public method

public RemoveTemporaryAliases ( ) : void
return void

Write() public method

public Write ( string format ) : void
format string
return void

WriteError() public method

public WriteError ( string value ) : void
value string
return void

WriteErrorLine() public method

public WriteErrorLine ( string format ) : void
format string
return void

WriteInfo() public method

public WriteInfo ( string value ) : void
value string
return void

WriteInfoLine() public method

public WriteInfoLine ( string format ) : void
format string
return void

WriteLine() public method

public WriteLine ( ) : void
return void

WriteLine() public method

public WriteLine ( string format ) : void
format string
return void

WriteLink() public method

public WriteLink ( string text, string command ) : void
text string
command string
return void

WriteWarning() public method

public WriteWarning ( string value ) : void
value string
return void

WriteWarningLine() public method

public WriteWarningLine ( string format ) : void
format string
return void