C# Class Mono.Debugger.Backend.ThreadServant

Inheritance: DebuggerMarshalByRefObject
Show file Open project: baulig/debugger Class Usage Examples

Protected Properties

Property Type Description
id int
manager ThreadManager
process Process
tgroup ThreadGroup
thread Thread

Private Properties

Property Type Description
AbortInvocation void
AcquireThreadLock void
DetachThread void
DoTargetAccess object
GetCallbackFrame Inferior.CallbackFrame
GetRuntimeInvokedFunction Mono.Debugger.Languages.TargetFunctionType
InsertBreakpoint void
Invoke object
Old_Step ThreadCommandResult
ReleaseThreadLock void
RemoveBreakpoint void
ResumeUserThread void
SuspendUserThread void

Public Methods

Method Description
CallMethod ( TargetAddress method, TargetAddress method_argument, TargetObject object_argument ) : CommandResult
CallMethod ( TargetAddress method, long arg1, long arg2 ) : CommandResult
CallMethod ( TargetAddress method, long arg1, long arg2, long arg3, string string_arg ) : CommandResult
Detach ( ) : void
DisassembleInstruction ( Method method, TargetAddress address ) : AssemblerLine
DisassembleMethod ( Method method ) : AssemblerMethod
Dispose ( ) : void
GetBacktrace ( Backtrace mode, int max_frames ) : Backtrace
GetInstructionSize ( TargetAddress address ) : int
GetMemoryMaps ( ) : TargetMemoryArea[]
GetRegisters ( ) : Registers
Kill ( ) : void
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 ) : CommandResult
RuntimeInvoke ( TargetFunctionType function, TargetStructObject object_argument, TargetObject param_objects, RuntimeInvokeFlags flags, RuntimeInvokeResult result ) : void
SetRegisters ( Registers registers ) : void
SimpleLookup ( TargetAddress address, bool exact_match ) : Symbol
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void
DoDispose ( ) : void
ThreadServant ( ThreadManager manager, Process process ) : System
check_disposed ( ) : void

Private Methods

Method Description
AbortInvocation ( long ID ) : void
AcquireThreadLock ( ) : void
DetachThread ( ) : void
DoTargetAccess ( TargetAccessHandler func ) : object
GetCallbackFrame ( TargetAddress stack_pointer, bool exact_match ) : Inferior.CallbackFrame
GetRuntimeInvokedFunction ( long ID ) : TargetFunctionType
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.

Invoke ( TargetAccessDelegate func, object data ) : object
Old_Step ( StepMode mode, StepFrame frame ) : ThreadCommandResult
ReleaseThreadLock ( ) : void
RemoveBreakpoint ( BreakpointHandle handle ) : void

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

ResumeUserThread ( CommandResult result ) : void
SuspendUserThread ( ) : void

Method Details

CallMethod() public abstract method

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

CallMethod() public abstract method

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

CallMethod() public abstract method

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

Detach() public abstract method

public abstract Detach ( ) : void
return void

DisassembleInstruction() public abstract method

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

DisassembleMethod() public abstract method

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DoDispose() protected method

protected DoDispose ( ) : void
return void

GetBacktrace() public abstract method

public abstract GetBacktrace ( Backtrace mode, int max_frames ) : Backtrace
mode Backtrace
max_frames int
return Backtrace

GetInstructionSize() public abstract method

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

GetMemoryMaps() public abstract method

public abstract GetMemoryMaps ( ) : TargetMemoryArea[]
return TargetMemoryArea[]

GetRegisters() public abstract method

public abstract GetRegisters ( ) : Registers
return Registers

Kill() public abstract method

public abstract Kill ( ) : void
return void

Lookup() public abstract method

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

PrintObject() public abstract method

public abstract 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 abstract method

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

ReadAddress() public abstract method

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

ReadBuffer() public abstract method

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

ReadByte() public abstract method

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

ReadInteger() public abstract method

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

ReadLongInteger() public abstract method

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

ReadMemory() public abstract method

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

ReadString() public abstract method

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

Return() public abstract method

public abstract Return ( ReturnMode mode ) : CommandResult
mode ReturnMode
return CommandResult

RuntimeInvoke() public abstract method

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

SetRegisters() public abstract method

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

SimpleLookup() public abstract method

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

Step() public abstract method

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

Stop() public abstract method

public abstract Stop ( ) : void
return void

ThreadServant() protected method

protected ThreadServant ( ThreadManager manager, Process process ) : System
manager ThreadManager
process Process
return System

ToString() public method

public ToString ( ) : string
return string

WriteAddress() public abstract method

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

WriteBuffer() public abstract method

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

WriteByte() public abstract method

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

WriteInteger() public abstract method

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

WriteLongInteger() public abstract method

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

check_disposed() protected method

protected check_disposed ( ) : void
return void

Property Details

id protected property

protected int id
return int

manager protected property

protected ThreadManager manager
return ThreadManager

process protected property

protected Process process
return Process

tgroup protected property

protected ThreadGroup tgroup
return ThreadGroup

thread protected property

protected Thread thread
return Thread