C# Class Mono.Debugger.Languages.TargetLocation

This class represents the `location' of a variable. The idea is that we do not always have an address for a variable (for instance if it's stored in a register) and that an addresses lifetime may be limited.
ファイルを表示 Open project: baulig/debugger Class Usage Examples

Private Properties

Property Type Description
GetAddress TargetAddress
GetDereferencedLocation TargetLocation
GetLocationAtOffset TargetLocation
ReadBuffer byte[]
ReadMemory TargetBlob
WriteAddress void
WriteBuffer void

Public Methods

Method Description
Print ( ) : string
ToString ( ) : string

Protected Methods

Method Description
MyToString ( ) : string

Private Methods

Method Description
GetAddress ( TargetMemoryAccess target ) : TargetAddress
GetDereferencedLocation ( ) : TargetLocation
GetLocationAtOffset ( long offset ) : TargetLocation

Clones this location, but adds `offset' to its offset. Note that this'll just affect the new location's `Offset' property - if you use this for reference types, this won't modify the address which gets dereferenced. This is usually what you want to access the data at `offset' within the variable's contents (for instance to skip a header or access an array element).

ReadBuffer ( TargetMemoryAccess target, int size ) : byte[]

Same than ReadMemory(), but returns a byte[] array.

ReadMemory ( TargetMemoryAccess target, int size ) : TargetBlob
WriteAddress ( TargetMemoryAccess target, TargetAddress address ) : void
WriteBuffer ( TargetMemoryAccess target, byte data ) : void

Method Details

MyToString() protected method

protected MyToString ( ) : string
return string

Print() public abstract method

public abstract Print ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string