Compartilhar via


IDebugDisassemblyStream2

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This interface represents a stream of instructions.

Syntax

IDebugDisassemblyStream2 : IUnknown

Notes for Implementers

A debug engine implements this interface to support disassembly of a program's code.

Notes for Callers

A call to the GetDisassemblyStream method returns this interface.

Methods in Vtable Order

The following table shows the methods of IDebugDisassemblyStream2.

Method Description
Read Reads instructions starting from the current position in the disassembly stream.
Seek Moves the read pointer in the disassembly stream a given number of instructions relative to a specified position.
GetCodeLocationId Returns a code location identifier for a particular code context.
GetCodeContext Returns a code context object corresponding to a specified code location identifier.
GetCurrentLocation Returns a code location identifier that represents the current code location.
GetDocument Gets the source document associated with this disassembly stream.
GetScope Gets the scope of this disassembly stream.
GetSize Gets the size of this disassembly stream.

Remarks

The disassembly stream can be created to represent the entire address space or just a function or module within the space. Each instruction is represented by a DisassemblyData structure returned by a call to the Read method.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also