public void GetBreakpointType() { enum_BP_TYPE[] breakpointTypes = new enum_BP_TYPE[1]; Assert.AreEqual(VSConstants.S_OK, breakpointResolution.GetBreakpointType(breakpointTypes)); Assert.AreEqual(enum_BP_TYPE.BPT_CODE, breakpointTypes[0]); }
public AD7BreakpointResolution(AD7Engine engine, bool isDataBreakpoint, ulong address, /*optional*/ string functionName, /*optional*/ AD7DocumentContext documentContext) { _engine = engine; Addr = address; _documentContext = documentContext; _functionName = functionName; _breakType = isDataBreakpoint ? enum_BP_TYPE.BPT_DATA : enum_BP_TYPE.BPT_CODE; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public void GetBreakpointType(out enum_BP_TYPE type) { // // Data breakpoints not supported, yet. // LoggingUtils.PrintFunction(); type = enum_BP_TYPE.BPT_CODE; }
public DebugBreakpointResolution(IDebugProgram2 program, IDebugThread2 thread, enum_BP_TYPE breakpointType, BreakpointResolutionLocation location) { Contract.Requires <ArgumentNullException>(program != null, "program"); Contract.Requires <ArgumentNullException>(location != null, "location"); _program = program; _thread = thread; _breakpointType = breakpointType; _location = location; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public void GetBreakpointType (out enum_BP_TYPE type) { // // Data breakpoints not supported, yet. // LoggingUtils.PrintFunction (); type = enum_BP_TYPE.BPT_CODE; }
public int GetBreakpointType(enum_BP_TYPE[] pBPType) { if (pBPType == null) throw new ArgumentNullException("pBPType"); if (pBPType.Length == 0) throw new ArgumentException(); pBPType[0] = _breakpointType; return VSConstants.S_OK; }
public DebugBreakpointResolution(IDebugProgram2 program, IDebugThread2 thread, enum_BP_TYPE breakpointType, BreakpointResolutionLocation location) { Contract.Requires<ArgumentNullException>(program != null, "program"); Contract.Requires<ArgumentNullException>(location != null, "location"); _program = program; _thread = thread; _breakpointType = breakpointType; _location = location; }
public DebugErrorBreakpointResolution(IDebugProgram2 program, IDebugThread2 thread, enum_BP_TYPE breakpointType, BreakpointResolutionLocation location, enum_BP_ERROR_TYPE errorType, string message) { //Contract.Requires<ArgumentNullException>(program != null, "program"); //Contract.Requires<ArgumentNullException>(thread != null, "thread"); Contract.Requires <ArgumentNullException>(message != null, "message"); Contract.Requires <ArgumentNullException>(location != null, "location"); Contract.Requires <ArgumentException>(!string.IsNullOrEmpty(message)); _program = program; _thread = thread; _breakpointType = breakpointType; _errorType = errorType; _location = location; _message = message; }
public int GetBreakpointType(enum_BP_TYPE[] pBPType) { pBPType[0] = enum_BP_TYPE.BPT_CODE; return VSConstants.S_OK; }
/// <summary> /// breakpoint can be null. /// </summary> public DebugBreakpointResolution(enum_BP_TYPE type, DebugProgram program, DalvikLocationBreakpoint locationBP) { this.type = type; this.program = program; this.locationBP = locationBP; }
int IDebugErrorBreakpointResolution2.GetBreakpointType(enum_BP_TYPE[] pBPType) { pBPType[0] = enum_BP_TYPE.BPT_CODE; return Constants.S_OK; }
// Gets the type of the breakpoint represented by this resolution. int IDebugBreakpointResolution2.GetBreakpointType(enum_BP_TYPE[] pBPType) { pBPType[0] = _breakType; return Constants.S_OK; }
/// <summary> /// Default ctor /// </summary> public DebugBreakpointResolution(enum_BP_TYPE type, DebugProgram program) { this.type = type; this.program = program; }
public void GetBreakpointType() { enum_BP_TYPE[] types = new enum_BP_TYPE[1]; Assert.AreEqual(VSConstants.S_OK, resolution.GetBreakpointType(types)); Assert.AreEqual(enum_BP_TYPE.BPT_DATA, types[0]); }
// Gets the type of the breakpoint represented by this resolution. int IDebugBreakpointResolution2.GetBreakpointType(enum_BP_TYPE[] pBPType) { // The sample engine only supports code breakpoints. pBPType[0] = enum_BP_TYPE.BPT_CODE; return Constants.S_OK; }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #region IDebugBreakpointResolution2 Members //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public int GetBreakpointType (enum_BP_TYPE [] pBPType) { // // Gets the type of the breakpoint represented by this resolution. // LoggingUtils.PrintFunction (); GetBreakpointType (out pBPType [0]); return Constants.S_OK; }
/// <summary> /// Default ctor /// </summary> public DebugBoundBreakpoint(DebugPendingBreakpoint pendingBreakpoint, DebugBreakpointManager breakpointManager, enum_BP_TYPE type, Func <DebugBoundBreakpoint <T>, T> breakpointBuilder) { this.pendingBreakpoint = pendingBreakpoint; this.breakpointManager = breakpointManager; breakpoint = breakpointBuilder(this); resolution = new DebugBreakpointResolution(type, breakpointManager.Program); }
int IDebugErrorBreakpointResolution2.GetBreakpointType(enum_BP_TYPE[] pBPType) { throw new Exception("The method or operation is not implemented."); }
/// <summary> /// Gets the type of the breakpoint represented by this resolution. /// </summary> /// <param name="pBPType">Returns a value from the BP_TYPE enumeration that specifies the type of this breakpoint.</param> /// <returns>If successful, returns S_OK; otherwise returns an error code. Returns E_FAIL if the bpResLocation field in the associated BP_RESOLUTION_INFO structure is not valid.</returns> /// <remarks>The breakpoint may be a code or a data breakpoint, for example.</remarks> public virtual int GetBreakpointType( enum_BP_TYPE[] pBPType ) { Logger.Debug( string.Empty ); return VSConstants.E_NOTIMPL; }
int IDebugBreakpointResolution2.GetBreakpointType(enum_BP_TYPE[] pBPType) { Debug.WriteLine("AD7Breakpoint: GetBreakpointType"); pBPType[0] = enum_BP_TYPE.BPT_CODE; return VSConstants.S_OK; }
public int GetBreakpointType(enum_BP_TYPE[] pBPType) { Log.Debug("ScriptBreakpoint: GetBreakpointType"); pBPType[0] = enum_BP_TYPE.BPT_CODE; return VSConstants.S_OK; }