207 lines
8.7 KiB
C#
207 lines
8.7 KiB
C#
using System;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Provides information about a <see cref="T:System.Diagnostics.StackFrame" />, which represents a function call on the call stack for the current thread.</summary>
|
|
// Token: 0x02000622 RID: 1570
|
|
[Token(Token = "0x2000622")]
|
|
[MonoTODO]
|
|
[MonoTODO("Serialized objects are not compatible with MS.NET")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
[StructLayout(0)]
|
|
public class StackFrame
|
|
{
|
|
// Token: 0x06002F71 RID: 12145 RVA: 0x00018C90 File Offset: 0x00016E90
|
|
[Token(Token = "0x6002F71")]
|
|
[Address(RVA = "0x1B81150", Offset = "0x1B7FF50", VA = "0x181B81150")]
|
|
private static bool get_frame_info(int skip, bool needFileInfo, out MethodBase method, out int iloffset, out int native_offset, out string file, out int line, out int column)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class.</summary>
|
|
// Token: 0x06002F72 RID: 12146 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002F72")]
|
|
[Address(RVA = "0x1B80FD0", Offset = "0x1B7FDD0", VA = "0x181B80FD0")]
|
|
public StackFrame()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class that corresponds to a frame above the current stack frame.</summary>
|
|
/// <param name="skipFrames">The number of frames up the stack to skip.</param>
|
|
// Token: 0x06002F73 RID: 12147 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002F73")]
|
|
[Address(RVA = "0x1B810D0", Offset = "0x1B7FED0", VA = "0x181B810D0")]
|
|
public StackFrame(int skipFrames)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class that corresponds to a frame above the current stack frame, optionally capturing source information.</summary>
|
|
/// <param name="skipFrames">The number of frames up the stack to skip.</param>
|
|
/// <param name="fNeedFileInfo">
|
|
/// <see langword="true" /> to capture the file name, line number, and column number of the stack frame; otherwise, <see langword="false" />.</param>
|
|
// Token: 0x06002F74 RID: 12148 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002F74")]
|
|
[Address(RVA = "0x1B81040", Offset = "0x1B7FE40", VA = "0x181B81040")]
|
|
public StackFrame(int skipFrames, bool fNeedFileInfo)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the line number in the file that contains the code that is executing. This information is typically extracted from the debugging symbols for the executable.</summary>
|
|
/// <returns>The file line number, or 0 (zero) if the file line number cannot be determined.</returns>
|
|
// Token: 0x06002F75 RID: 12149 RVA: 0x00018CA8 File Offset: 0x00016EA8
|
|
[Token(Token = "0x6002F75")]
|
|
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "4")]
|
|
public virtual int GetFileLineNumber()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the column number in the file that contains the code that is executing. This information is typically extracted from the debugging symbols for the executable.</summary>
|
|
/// <returns>The file column number, or 0 (zero) if the file column number cannot be determined.</returns>
|
|
// Token: 0x06002F76 RID: 12150 RVA: 0x00018CC0 File Offset: 0x00016EC0
|
|
[Token(Token = "0x6002F76")]
|
|
[Address(RVA = "0x567E30", Offset = "0x566C30", VA = "0x180567E30", Slot = "5")]
|
|
public virtual int GetFileColumnNumber()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the file name that contains the code that is executing. This information is typically extracted from the debugging symbols for the executable.</summary>
|
|
/// <returns>The file name, or <see langword="null" /> if the file name cannot be determined.</returns>
|
|
// Token: 0x06002F77 RID: 12151 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002F77")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "6")]
|
|
public virtual string GetFileName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002F78 RID: 12152 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002F78")]
|
|
[Address(RVA = "0x1B80D90", Offset = "0x1B7FB90", VA = "0x181B80D90")]
|
|
internal string GetSecureFileName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the offset from the start of the Microsoft intermediate language (MSIL) code for the method that is executing. This offset might be an approximation depending on whether or not the just-in-time (JIT) compiler is generating debugging code. The generation of this debugging information is controlled by the <see cref="T:System.Diagnostics.DebuggableAttribute" />.</summary>
|
|
/// <returns>The offset from the start of the MSIL code for the method that is executing.</returns>
|
|
// Token: 0x06002F79 RID: 12153 RVA: 0x00018CD8 File Offset: 0x00016ED8
|
|
[Token(Token = "0x6002F79")]
|
|
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "7")]
|
|
public virtual int GetILOffset()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Gets the method in which the frame is executing.</summary>
|
|
/// <returns>The method in which the frame is executing.</returns>
|
|
// Token: 0x06002F7A RID: 12154 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002F7A")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "8")]
|
|
public virtual MethodBase GetMethod()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the offset from the start of the native just-in-time (JIT)-compiled code for the method that is being executed. The generation of this debugging information is controlled by the <see cref="T:System.Diagnostics.DebuggableAttribute" /> class.</summary>
|
|
/// <returns>The offset from the start of the JIT-compiled code for the method that is being executed.</returns>
|
|
// Token: 0x06002F7B RID: 12155 RVA: 0x00018CF0 File Offset: 0x00016EF0
|
|
[Token(Token = "0x6002F7B")]
|
|
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080", Slot = "9")]
|
|
public virtual int GetNativeOffset()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x06002F7C RID: 12156 RVA: 0x00018D08 File Offset: 0x00016F08
|
|
[Token(Token = "0x6002F7C")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
internal long GetMethodAddress()
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
// Token: 0x06002F7D RID: 12157 RVA: 0x00018D20 File Offset: 0x00016F20
|
|
[Token(Token = "0x6002F7D")]
|
|
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")]
|
|
internal uint GetMethodIndex()
|
|
{
|
|
return 0U;
|
|
}
|
|
|
|
// Token: 0x06002F7E RID: 12158 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002F7E")]
|
|
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
|
internal string GetInternalMethodName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Builds a readable representation of the stack trace.</summary>
|
|
/// <returns>A readable representation of the stack trace.</returns>
|
|
// Token: 0x06002F7F RID: 12159 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002F7F")]
|
|
[Address(RVA = "0x1B80E10", Offset = "0x1B7FC10", VA = "0x181B80E10", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Defines the value that is returned from the <see cref="M:System.Diagnostics.StackFrame.GetNativeOffset" /> or <see cref="M:System.Diagnostics.StackFrame.GetILOffset" /> method when the native or Microsoft intermediate language (MSIL) offset is unknown. This field is constant.</summary>
|
|
// Token: 0x04001A69 RID: 6761
|
|
[Token(Token = "0x4001A69")]
|
|
public const int OFFSET_UNKNOWN = -1;
|
|
|
|
// Token: 0x04001A6A RID: 6762
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001A6A")]
|
|
private int ilOffset;
|
|
|
|
// Token: 0x04001A6B RID: 6763
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4001A6B")]
|
|
private int nativeOffset;
|
|
|
|
// Token: 0x04001A6C RID: 6764
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001A6C")]
|
|
private long methodAddress;
|
|
|
|
// Token: 0x04001A6D RID: 6765
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001A6D")]
|
|
private uint methodIndex;
|
|
|
|
// Token: 0x04001A6E RID: 6766
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4001A6E")]
|
|
private MethodBase methodBase;
|
|
|
|
// Token: 0x04001A6F RID: 6767
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4001A6F")]
|
|
private string fileName;
|
|
|
|
// Token: 0x04001A70 RID: 6768
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4001A70")]
|
|
private int lineNumber;
|
|
|
|
// Token: 0x04001A71 RID: 6769
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4001A71")]
|
|
private int columnNumber;
|
|
|
|
// Token: 0x04001A72 RID: 6770
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4001A72")]
|
|
private string internalMethodName;
|
|
}
|
|
}
|