Ejemplo n.º 1
0
        public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            ppDisassemblyStream = null;

            if (pCodeContext == null)
                throw new ArgumentNullException("pCodeContext");

            JavaDebugCodeContext codeContext = pCodeContext as JavaDebugCodeContext;
            if (codeContext == null)
                return VSConstants.E_INVALIDARG;

            ppDisassemblyStream = new JavaDebugDisassemblyStream(codeContext);
            return VSConstants.S_OK;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the disassembly stream for this program or a part of this program.
 /// </summary>
 /// <param name="dwScope"> Specifies a value from the DISASSEMBLY_STREAM_SCOPE enumeration that defines the scope of the disassembly stream.</param>
 /// <param name="pCodeContext">An IDebugCodeContext2 object that represents the position of where to start the disassembly stream.</param>
 /// <param name="ppDisassemblyStream">Returns an IDebugDisassemblyStream2 object that represents the disassembly stream.</param>
 /// <returns>If successful, returns S_OK; otherwise, returns an error code. Returns E_DISASM_NOTSUPPORTED if disassembly is not supported for this particular architecture.</returns>
 /// <remarks>
 /// If the dwScopes parameter has the DSS_HUGE flag of the DISASSEMBLY_STREAM_SCOPE enumeration set, then the disassembly is expected to return a large number of disassembly instructions, for example, for an entire file or module. If the DSS_HUGE flag is not set, then the disassembly is expected to be confined to a small region, typically that of a single function.
 /// </remarks>
 public virtual int GetDisassemblyStream( enum_DISASSEMBLY_STREAM_SCOPE dwScope,
     IDebugCodeContext2 pCodeContext,
     out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     Logger.Debug( string.Empty );
     ppDisassemblyStream = null;
     return VSConstants.E_NOTIMPL;
 }
Ejemplo n.º 3
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     Log.Debug("Program: GetDisassemblyStream");
     ppDisassemblyStream = null;
     return VSConstants.E_NOTIMPL;
 }
Ejemplo n.º 4
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream) {
     throw new NotImplementedException();
 }
 int IDebugProgram2.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
   Debug.WriteLine("AD7ProgramNode: Entering GetDisassemblyStream");
   throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 // The debugger calls this when it needs to obtain the IDebugDisassemblyStream2 for a particular code-context.
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 codeContext, out IDebugDisassemblyStream2 disassemblyStream)
 {
     disassemblyStream = null;
     return(VSConstants.E_NOTIMPL);
 }
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     Log.Debug("Program: GetDisassemblyStream");
     ppDisassemblyStream = null;
     return(VSConstants.E_NOTIMPL);
 }
Ejemplo n.º 8
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugProgram2.GetDisassemblyStream");
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
        public int GetDisassemblyStream(uint dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            ppDisassemblyStream = null;

            return(E_NOTIMPL);
        }
Ejemplo n.º 10
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            //
            // Gets the disassembly stream for this program or part of this program.
            //

            LoggingUtils.PrintFunction();

            ppDisassemblyStream = null;

            try
            {
                if (AttachedEngine == null)
                {
                    throw new InvalidOperationException();
                }

                LoggingUtils.RequireOk(AttachedEngine.NativeDebugger.NativeProgram.GetDisassemblyStream(dwScope, pCodeContext, out ppDisassemblyStream));

                //LoggingUtils.RequireOk (AttachedEngine.JavaDebugger.JavaProgram.GetDisassemblyStream (dwScope, pCodeContext, out ppDisassemblyStream));

                return(Constants.S_OK);
            }
            catch (Exception e)
            {
                LoggingUtils.HandleException(e);

                return(Constants.E_FAIL);
            }
        }
Ejemplo n.º 11
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugProgram2.GetDisassemblyStream");
     ppDisassemblyStream = new DebugDisassemblyStream(this, ((DebugCodeContext)pCodeContext));
     return VSConstants.S_OK;
 }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    public int GetDisassemblyStream (enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
    {
      LoggingUtils.PrintFunction ();

      ppDisassemblyStream = null;

      return Constants.E_NOTIMPL;
    }
Ejemplo n.º 13
0
 int IDebugProgram2.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     Debug.WriteLine("AD7ProgramNode: Entering GetDisassemblyStream");
     throw new NotImplementedException();
 }
 int Microsoft.VisualStudio.Debugger.Interop.IDebugProgram2.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     ppDisassemblyStream = null;
     return(COM_HResults.S_OK);
 }
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            LoggingUtils.PrintFunction();

            ppDisassemblyStream = null;

            return(Constants.E_NOTIMPL);
        }
Ejemplo n.º 16
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     DLog.Debug(DContext.VSDebuggerComCall, "IDebugProgram2.GetDisassemblyStream");
     throw new NotImplementedException();
 }
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            LoggingUtils.PrintFunction();

            ppDisassemblyStream = new CLangDebuggeeDisassemblyStream(m_debugger, dwScope, pCodeContext);

            return(Constants.S_OK);
        }
Ejemplo n.º 18
0
 // The debugger calls this when it needs to obtain the IDebugDisassemblyStream2 for a particular code-context.
 // The sample engine does not support dissassembly so it returns E_NOTIMPL
 // In order for this to be called, the Disassembly capability must be set in the registry for this Engine
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 codeContext, out IDebugDisassemblyStream2 disassemblyStream)
 {
     disassemblyStream = new AD7DisassemblyStream(this, dwScope, codeContext);
     return(Constants.S_OK);
 }
Ejemplo n.º 19
0
 int IDebugProgram2.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     ppDisassemblyStream = null;
     return(VSConstants.E_NOTIMPL);
 }
Ejemplo n.º 20
0
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 21
0
 int IDebugProgram3.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     return(IDebugProgram2.GetDisassemblyStream(dwScope, pCodeContext, out ppDisassemblyStream));
 }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    public int GetDisassemblyStream (enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
    {
      LoggingUtils.PrintFunction ();

      ppDisassemblyStream = new CLangDebuggeeDisassemblyStream (m_debugger, dwScope, pCodeContext);

      return Constants.S_OK;
    }
        public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
        {
            ppDisassemblyStream = null;

            if (pCodeContext == null)
            {
                throw new ArgumentNullException("pCodeContext");
            }

            JavaDebugCodeContext codeContext = pCodeContext as JavaDebugCodeContext;

            if (codeContext == null)
            {
                return(VSConstants.E_INVALIDARG);
            }

            ppDisassemblyStream = new JavaDebugDisassemblyStream(codeContext);
            return(VSConstants.S_OK);
        }
Ejemplo n.º 24
0
 int Microsoft.VisualStudio.Debugger.Interop.IDebugProgram2.GetDisassemblyStream(uint dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     ppDisassemblyStream = null;
     return Utility.COM_HResults.S_OK;
 }
Ejemplo n.º 25
0
 int IDebugProgram2.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream) {
     ppDisassemblyStream = null;
     return VSConstants.E_NOTIMPL;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Gets the disassembly stream for this program or a part of this program.
 /// The sample engine does not support dissassembly so it returns E_NOTIMPL
 /// </summary>
 /// <param name="dwScope"> Specifies a value from the DISASSEMBLY_STREAM_SCOPE enumeration that defines the scope of the 
 /// disassembly stream.</param>
 /// <param name="codeContext"> An object that represents the position of where to start the disassembly stream. </param>
 /// <param name="disassemblyStream"> Returns an IDebugDisassemblyStream2 object that represents the disassembly stream. </param>
 /// <returns> VSConstants.E_NOTIMPL. </returns>
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 codeContext, out IDebugDisassemblyStream2 disassemblyStream)
 {
     disassemblyStream = null;
     return VSConstants.E_NOTIMPL;
 }
Ejemplo n.º 27
0
 int IDebugProgram3.GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream) {
     return IDebugProgram2.GetDisassemblyStream(dwScope, pCodeContext, out ppDisassemblyStream);
 }
Ejemplo n.º 28
0
 // The debugger calls this when it needs to obtain the IDebugDisassemblyStream2 for a particular code-context.
 // The sample engine does not support dissassembly so it returns E_NOTIMPL
 // In order for this to be called, the Disassembly capability must be set in the registry for this Engine
 public int GetDisassemblyStream(enum_DISASSEMBLY_STREAM_SCOPE dwScope, IDebugCodeContext2 codeContext, out IDebugDisassemblyStream2 disassemblyStream)
 {
     disassemblyStream = new AD7DisassemblyStream(this, dwScope, codeContext);
     return Constants.S_OK;
 }
Ejemplo n.º 29
0
 int Microsoft.VisualStudio.Debugger.Interop.IDebugProgram2.GetDisassemblyStream(uint dwScope, IDebugCodeContext2 pCodeContext, out IDebugDisassemblyStream2 ppDisassemblyStream)
 {
     ppDisassemblyStream = null;
     return(Utility.COM_HResults.S_OK);
 }