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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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