C# 클래스 VSNDK.DebugEngine.AD7MemoryAddress

And implementation of IDebugCodeContext2 and IDebugMemoryContext2. IDebugMemoryContext2 represents a position in the address space of the machine running the program being debugged. IDebugCodeContext2 represents the starting position of a code instruction. For most run-time architectures today, a code context can be thought of as an address in a program's execution stream.
상속: IDebugCodeContext2, IDebugCodeContext100
파일 보기 프로젝트 열기: blackberry/VSPlugin 1 사용 예제들

공개 메소드들

메소드 설명
AD7MemoryAddress ( AD7Engine engine, uint address ) : System

Constructor.

Add ( ulong dwCount, IDebugMemoryContext2 &newAddress ) : int

Adds a specified value to the current context's address to create a new context. (http://msdn.microsoft.com/en-ca/library/bb145861.aspx)

Compare ( enum_CONTEXT_COMPARE uContextCompare, IDebugMemoryContext2 compareToItems, uint compareToLength, uint &foundIndex ) : int

Compares the memory context to each context in the given array in the manner indicated by compare flags, returning an index of the first context that matches. (http://msdn.microsoft.com/en-ca/library/bb161750.aspx)

GetDocumentContext ( IDebugDocumentContext2 &ppSrcCxt ) : int

Gets the document context that corresponds to this code context. The document context represents a position in the source file that corresponds to the source code that generated this instruction. (http://msdn.microsoft.com/en-ca/library/bb161811.aspx)

GetInfo ( enum_CONTEXT_INFO_FIELDS dwFields, CONTEXT_INFO pinfo ) : int

Gets information that describes this context. Not implemented. (http://msdn.microsoft.com/en-ca/library/bb145034.aspx)

GetLanguageInfo ( string &pbstrLanguage, System.Guid &pguidLanguage ) : int

Gets the language information for this code context. (http://msdn.microsoft.com/en-ca/library/bb144925.aspx)

GetName ( string &pbstrName ) : int

Gets the user-displayable name for this context. This is not supported by the VSNDK debug engine. (http://msdn.microsoft.com/en-ca/library/bb146997.aspx)

SetDocumentContext ( IDebugDocumentContext2 docContext ) : void

Sets the document context.

Subtract ( ulong dwCount, IDebugMemoryContext2 &ppMemCxt ) : int

Subtracts a specified value from the current context's address to create a new context. (http://msdn.microsoft.com/en-ca/library/bb146285.aspx)

비공개 메소드들

메소드 설명
IDebugCodeContext100 ( IDebugProgram2 &pProgram ) : int

Returns the program being debugged. In the case of this VSNDK debug debug engine, AD7Engine implements IDebugProgram2 which represents the program being debugged. (http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.debugger.interop.idebugcodecontext100.getprogram.aspx)

메소드 상세

AD7MemoryAddress() 공개 메소드

Constructor.
public AD7MemoryAddress ( AD7Engine engine, uint address ) : System
engine AD7Engine The AD7Engine object that represents the DE.
address uint The current context's address.
리턴 System

Add() 공개 메소드

Adds a specified value to the current context's address to create a new context. (http://msdn.microsoft.com/en-ca/library/bb145861.aspx)
public Add ( ulong dwCount, IDebugMemoryContext2 &newAddress ) : int
dwCount ulong The value to add to the current context.
newAddress IDebugMemoryContext2 Returns a new IDebugMemoryContext2 object.
리턴 int

Compare() 공개 메소드

Compares the memory context to each context in the given array in the manner indicated by compare flags, returning an index of the first context that matches. (http://msdn.microsoft.com/en-ca/library/bb161750.aspx)
public Compare ( enum_CONTEXT_COMPARE uContextCompare, IDebugMemoryContext2 compareToItems, uint compareToLength, uint &foundIndex ) : int
uContextCompare enum_CONTEXT_COMPARE A value from the CONTEXT_COMPARE enumeration that determines the type of comparison.
compareToItems IDebugMemoryContext2 An array of references to the IDebugMemoryContext2 objects to compare against.
compareToLength uint The number of contexts in the compareToItems array.
foundIndex uint Returns the index of the first memory context that satisfies the comparison.
리턴 int

GetDocumentContext() 공개 메소드

Gets the document context that corresponds to this code context. The document context represents a position in the source file that corresponds to the source code that generated this instruction. (http://msdn.microsoft.com/en-ca/library/bb161811.aspx)
public GetDocumentContext ( IDebugDocumentContext2 &ppSrcCxt ) : int
ppSrcCxt IDebugDocumentContext2 Returns the IDebugDocumentContext2 object that corresponds to the code context.
리턴 int

GetInfo() 공개 메소드

Gets information that describes this context. Not implemented. (http://msdn.microsoft.com/en-ca/library/bb145034.aspx)
public GetInfo ( enum_CONTEXT_INFO_FIELDS dwFields, CONTEXT_INFO pinfo ) : int
dwFields enum_CONTEXT_INFO_FIELDS A combination of flags from the CONTEXT_INFO_FIELDS enumeration that indicate which fields of the /// CONTEXT_INFO structure are to be fill in.
pinfo CONTEXT_INFO The CONTEXT_INFO structure that is filled in.
리턴 int

GetLanguageInfo() 공개 메소드

Gets the language information for this code context. (http://msdn.microsoft.com/en-ca/library/bb144925.aspx)
public GetLanguageInfo ( string &pbstrLanguage, System.Guid &pguidLanguage ) : int
pbstrLanguage string Returns a string that contains the name of the language, such as "C++.".
pguidLanguage System.Guid Returns the GUID for the language of the code context, for example, guidCPPLang.
리턴 int

GetName() 공개 메소드

Gets the user-displayable name for this context. This is not supported by the VSNDK debug engine. (http://msdn.microsoft.com/en-ca/library/bb146997.aspx)
public GetName ( string &pbstrName ) : int
pbstrName string Returns the name of the memory context.
리턴 int

SetDocumentContext() 공개 메소드

Sets the document context.
public SetDocumentContext ( IDebugDocumentContext2 docContext ) : void
docContext IDebugDocumentContext2 The IDebugDocumentContext2 object that corresponds to the code context.
리턴 void

Subtract() 공개 메소드

Subtracts a specified value from the current context's address to create a new context. (http://msdn.microsoft.com/en-ca/library/bb146285.aspx)
public Subtract ( ulong dwCount, IDebugMemoryContext2 &ppMemCxt ) : int
dwCount ulong The number of memory bytes to decrement.
ppMemCxt IDebugMemoryContext2 Returns a new IDebugMemoryContext2 object.
리턴 int