C# Class Mono.Debugger.Thread

Inheritance: DebuggerMarshalByRefObject, IOperationHost
Mostrar archivo Open project: baulig/debugger Class Usage Examples

Private Properties

Property Type Description
AbortInvocation void
Background ThreadCommandResult
Background ThreadCommandResult
Continue ThreadCommandResult
Continue ThreadCommandResult
Detach void
Dispose void
IOperationHost void
IOperationHost void
IOperationHost void
InsertBreakpoint void
Kill void
NextInstruction ThreadCommandResult
NextLine ThreadCommandResult
Old_Step ThreadCommandResult
Old_Step ThreadCommandResult
RemoveBreakpoint void
RuntimeInvoke RuntimeInvokeResult
StepInstruction ThreadCommandResult
StepLine ThreadCommandResult
StepNativeInstruction ThreadCommandResult
Thread System
check_alive void
check_disposed void
check_servant void
write_memory void

Public Methods

Method Description
AutoStop ( ) : void
CallMethod ( TargetAddress method, TargetAddress method_argument, TargetObject object_argument ) : TargetAddress
CallMethod ( TargetAddress method, TargetAddress arg1, long arg2 ) : TargetAddress
CallMethod ( TargetAddress method, TargetAddress arg1, long arg2, long arg3, string string_arg ) : TargetAddress
CallMethod ( TargetAddress method, long arg1, long arg2 ) : TargetAddress
DisassembleInstruction ( Method method, TargetAddress address ) : AssemblerLine
DisassembleMethod ( Method method ) : AssemblerMethod
Dispose ( ) : void
Finish ( bool native ) : ThreadCommandResult

Continue until leaving the current method.

GetBacktrace ( ) : Backtrace
GetBacktrace ( Backtrace mode, int max_frames ) : Backtrace

The current stack frame. May only be used when the engine is stopped (State == TargetState.STOPPED). The backtrace is generated on demand, when this function is called. However, the single stepping engine will compute this only once each time a stepping operation is completed. This means that if you call this function several times without doing any stepping operations in the meantime, you'll always get the same backtrace.

GetBacktrace ( int max_frames ) : Backtrace
GetInstructionSize ( TargetAddress address ) : int
GetLastTargetEvent ( ) : TargetEventArgs
GetMemoryMaps ( ) : Mono.Debugger.TargetMemoryArea[]
GetRegisters ( ) : Registers
GetWaitHandle ( ) : ThreadCommandResult
Lookup ( TargetAddress address ) : Method
PrintObject ( Style style, TargetObject obj, DisplayFormat format ) : string
PrintRegisters ( StackFrame frame ) : string
PrintType ( Style style, TargetType type ) : string
ReadAddress ( TargetAddress address ) : TargetAddress
ReadBuffer ( TargetAddress address, int size ) : byte[]
ReadByte ( TargetAddress address ) : byte
ReadInteger ( TargetAddress address ) : int
ReadLongInteger ( TargetAddress address ) : long
ReadMemory ( TargetAddress address, int size ) : TargetBlob
ReadString ( TargetAddress address ) : string
Return ( ReturnMode mode ) : void
RuntimeInvoke ( TargetFunctionType function, TargetStructObject object_argument, TargetObject param_objects, RuntimeInvokeFlags flags ) : RuntimeInvokeResult
SetRegisters ( Registers registers ) : void
SimpleLookup ( TargetAddress address, bool exact_match ) : Symbol
Step ( ThreadingModel model, StepMode mode ) : CommandResult
Step ( ThreadingModel model, StepMode mode, StepFrame frame ) : CommandResult
Stop ( ) : void
ToString ( ) : string
WriteAddress ( TargetAddress address, TargetAddress value ) : void
WriteBuffer ( TargetAddress address, byte buffer ) : void
WriteByte ( TargetAddress address, byte value ) : void
WriteInteger ( TargetAddress address, int value ) : void
WriteLongInteger ( TargetAddress address, long value ) : void

Private Methods

Method Description
AbortInvocation ( long rti_id ) : void
Background ( ) : ThreadCommandResult
Background ( TargetAddress until ) : ThreadCommandResult
Continue ( ) : ThreadCommandResult
Continue ( TargetAddress until ) : ThreadCommandResult
Detach ( ) : void
Dispose ( bool disposing ) : void
IOperationHost ( ) : void
IOperationHost ( SingleSteppingEngine sse, TargetEventArgs args ) : void
IOperationHost ( SingleSteppingEngine sse, TargetEventArgs args, ThreadingModel model ) : void
InsertBreakpoint ( BreakpointHandle handle, TargetAddress address, int domain ) : void

Insert a breakpoint at address @address. Returns a number which may be passed to RemoveBreakpoint() to remove the breakpoint.

Kill ( ) : void
NextInstruction ( ) : ThreadCommandResult
NextLine ( ) : ThreadCommandResult
Old_Step ( StepMode mode ) : ThreadCommandResult
Old_Step ( StepMode mode, StepFrame frame ) : ThreadCommandResult
RemoveBreakpoint ( BreakpointHandle handle ) : void

Remove breakpoint @index. @index is the breakpoint number which has been returned by InsertBreakpoint().

RuntimeInvoke ( TargetFunctionType function, TargetStructObject object_argument, TargetObject param_objects, bool is_virtual, bool debug ) : RuntimeInvokeResult
StepInstruction ( ) : ThreadCommandResult
StepLine ( ) : ThreadCommandResult
StepNativeInstruction ( ) : ThreadCommandResult
Thread ( ThreadServant servant, int id ) : System
check_alive ( ) : void
check_disposed ( ) : void
check_servant ( ) : void
write_memory ( TargetAddress address, byte buffer ) : void

Method Details

AutoStop() public method

public AutoStop ( ) : void
return void

CallMethod() public method

public CallMethod ( TargetAddress method, TargetAddress method_argument, TargetObject object_argument ) : TargetAddress
method TargetAddress
method_argument TargetAddress
object_argument Mono.Debugger.Languages.TargetObject
return TargetAddress

CallMethod() public method

public CallMethod ( TargetAddress method, TargetAddress arg1, long arg2 ) : TargetAddress
method TargetAddress
arg1 TargetAddress
arg2 long
return TargetAddress

CallMethod() public method

public CallMethod ( TargetAddress method, TargetAddress arg1, long arg2, long arg3, string string_arg ) : TargetAddress
method TargetAddress
arg1 TargetAddress
arg2 long
arg3 long
string_arg string
return TargetAddress

CallMethod() public method

public CallMethod ( TargetAddress method, long arg1, long arg2 ) : TargetAddress
method TargetAddress
arg1 long
arg2 long
return TargetAddress

DisassembleInstruction() public method

public DisassembleInstruction ( Method method, TargetAddress address ) : AssemblerLine
method Method
address TargetAddress
return AssemblerLine

DisassembleMethod() public method

public DisassembleMethod ( Method method ) : AssemblerMethod
method Method
return AssemblerMethod

Dispose() public method

public Dispose ( ) : void
return void

Finish() public method

Continue until leaving the current method.
public Finish ( bool native ) : ThreadCommandResult
native bool
return ThreadCommandResult

GetBacktrace() public method

public GetBacktrace ( ) : Backtrace
return Backtrace

GetBacktrace() public method

The current stack frame. May only be used when the engine is stopped (State == TargetState.STOPPED). The backtrace is generated on demand, when this function is called. However, the single stepping engine will compute this only once each time a stepping operation is completed. This means that if you call this function several times without doing any stepping operations in the meantime, you'll always get the same backtrace.
public GetBacktrace ( Backtrace mode, int max_frames ) : Backtrace
mode Backtrace
max_frames int
return Backtrace

GetBacktrace() public method

public GetBacktrace ( int max_frames ) : Backtrace
max_frames int
return Backtrace

GetInstructionSize() public method

public GetInstructionSize ( TargetAddress address ) : int
address TargetAddress
return int

GetLastTargetEvent() public method

public GetLastTargetEvent ( ) : TargetEventArgs
return TargetEventArgs

GetMemoryMaps() public method

public GetMemoryMaps ( ) : Mono.Debugger.TargetMemoryArea[]
return Mono.Debugger.TargetMemoryArea[]

GetRegisters() public method

public GetRegisters ( ) : Registers
return Registers

GetWaitHandle() public method

public GetWaitHandle ( ) : ThreadCommandResult
return ThreadCommandResult

Lookup() public method

public Lookup ( TargetAddress address ) : Method
address TargetAddress
return Method

PrintObject() public method

public PrintObject ( Style style, TargetObject obj, DisplayFormat format ) : string
style Style
obj Mono.Debugger.Languages.TargetObject
format DisplayFormat
return string

PrintRegisters() public method

public PrintRegisters ( StackFrame frame ) : string
frame StackFrame
return string

PrintType() public method

public PrintType ( Style style, TargetType type ) : string
style Style
type Mono.Debugger.Languages.TargetType
return string

ReadAddress() public method

public ReadAddress ( TargetAddress address ) : TargetAddress
address TargetAddress
return TargetAddress

ReadBuffer() public method

public ReadBuffer ( TargetAddress address, int size ) : byte[]
address TargetAddress
size int
return byte[]

ReadByte() public method

public ReadByte ( TargetAddress address ) : byte
address TargetAddress
return byte

ReadInteger() public method

public ReadInteger ( TargetAddress address ) : int
address TargetAddress
return int

ReadLongInteger() public method

public ReadLongInteger ( TargetAddress address ) : long
address TargetAddress
return long

ReadMemory() public method

public ReadMemory ( TargetAddress address, int size ) : TargetBlob
address TargetAddress
size int
return TargetBlob

ReadString() public method

public ReadString ( TargetAddress address ) : string
address TargetAddress
return string

Return() public method

public Return ( ReturnMode mode ) : void
mode ReturnMode
return void

RuntimeInvoke() public method

public RuntimeInvoke ( TargetFunctionType function, TargetStructObject object_argument, TargetObject param_objects, RuntimeInvokeFlags flags ) : RuntimeInvokeResult
function Mono.Debugger.Languages.TargetFunctionType
object_argument Mono.Debugger.Languages.TargetStructObject
param_objects Mono.Debugger.Languages.TargetObject
flags RuntimeInvokeFlags
return RuntimeInvokeResult

SetRegisters() public method

public SetRegisters ( Registers registers ) : void
registers Registers
return void

SimpleLookup() public method

public SimpleLookup ( TargetAddress address, bool exact_match ) : Symbol
address TargetAddress
exact_match bool
return Symbol

Step() public method

public Step ( ThreadingModel model, StepMode mode ) : CommandResult
model ThreadingModel
mode StepMode
return CommandResult

Step() public method

public Step ( ThreadingModel model, StepMode mode, StepFrame frame ) : CommandResult
model ThreadingModel
mode StepMode
frame StepFrame
return CommandResult

Stop() public method

public Stop ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

WriteAddress() public method

public WriteAddress ( TargetAddress address, TargetAddress value ) : void
address TargetAddress
value TargetAddress
return void

WriteBuffer() public method

public WriteBuffer ( TargetAddress address, byte buffer ) : void
address TargetAddress
buffer byte
return void

WriteByte() public method

public WriteByte ( TargetAddress address, byte value ) : void
address TargetAddress
value byte
return void

WriteInteger() public method

public WriteInteger ( TargetAddress address, int value ) : void
address TargetAddress
value int
return void

WriteLongInteger() public method

public WriteLongInteger ( TargetAddress address, long value ) : void
address TargetAddress
value long
return void