/// <summary> /// Reads a static field /// </summary> /// <param name="token">Token of field</param> /// <param name="frame">Frame</param> /// <param name="hr">Updated with HRESULT</param> /// <returns></returns> public CorValue GetStaticFieldValue(uint token, CorFrame frame, out int hr) { ICorDebugValue value; hr = obj.GetStaticFieldValue(token, frame?.RawObject, out value); return(hr < 0 || value == null ? null : new CorValue(value)); }
public bool InterceptCurrentException(CorFrame frame) { var t2 = obj as ICorDebugThread2; if (t2 == null) { return(false); } int hr = t2.InterceptCurrentException(frame.RawObject); return(hr >= 0); }
/// <summary> /// Finds a frame. Can be called if <paramref name="frame"/> has been neutered /// </summary> /// <param name="frame">Frame</param> /// <returns></returns> public CorFrame FindFrame(CorFrame frame) { if (frame == null) { return(null); } foreach (var thread in threads.GetAll()) { foreach (var f in thread.AllFrames) { if (f.StackStart == frame.StackStart && f.StackEnd == frame.StackEnd) { return(f); } } } return(null); }
public bool Equals(CorFrame other) { return(!ReferenceEquals(other, null) && RawObject == other.RawObject); }
public CorValue ReadStatic(CorFrame frame) => Class.GetStaticFieldValue(Token, frame);
/// <summary> /// Reads a static field /// </summary> /// <param name="token">Token of field</param> /// <param name="frame">Frame</param> /// <returns></returns> public CorValue GetStaticFieldValue(uint token, CorFrame frame) { int hr; return(GetStaticFieldValue(token, frame, out hr)); }
public bool Equals(CorFrame other) => !ReferenceEquals(other, null) && RawObject == other.RawObject;
/// <summary> /// Reads a static field /// </summary> /// <param name="token">Token of field</param> /// <param name="frame">Frame</param> /// <returns></returns> public CorValue GetStaticFieldValue(uint token, CorFrame frame) => GetStaticFieldValue(token, frame, out int hr);
public CorValue ReadStatic(CorFrame frame) { return(cls.GetStaticFieldValue(token, frame)); }