oh dear
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Diagnostics
|
||||
{
|
||||
/// <summary>Represents a stack trace, which is an ordered collection of one or more stack frames.</summary>
|
||||
// Token: 0x02000623 RID: 1571
|
||||
[Token(Token = "0x2000623")]
|
||||
[MonoTODO]
|
||||
[MonoTODO("Serialized objects are not compatible with .NET")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public class StackTrace
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackTrace" /> class from the caller's frame.</summary>
|
||||
// Token: 0x06002F80 RID: 12160 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F80")]
|
||||
[Address(RVA = "0x1B81E70", Offset = "0x1B80C70", VA = "0x181B81E70")]
|
||||
public StackTrace()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackTrace" /> class from the caller's frame, optionally capturing source information.</summary>
|
||||
/// <param name="fNeedFileInfo">
|
||||
/// <see langword="true" /> to capture the file name, line number, and column number; otherwise, <see langword="false" />.</param>
|
||||
// Token: 0x06002F81 RID: 12161 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F81")]
|
||||
[Address(RVA = "0x1B81EE0", Offset = "0x1B80CE0", VA = "0x181B81EE0")]
|
||||
public StackTrace(bool fNeedFileInfo)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackTrace" /> class from the caller's frame, skipping the specified number of frames and optionally capturing source information.</summary>
|
||||
/// <param name="skipFrames">The number of frames up the stack from which to start the trace.</param>
|
||||
/// <param name="fNeedFileInfo">
|
||||
/// <see langword="true" /> to capture the file name, line number, and column number; otherwise, <see langword="false" />.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="skipFrames" /> parameter is negative.</exception>
|
||||
// Token: 0x06002F82 RID: 12162 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F82")]
|
||||
[Address(RVA = "0x1B81EA0", Offset = "0x1B80CA0", VA = "0x181B81EA0")]
|
||||
public StackTrace(int skipFrames, bool fNeedFileInfo)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002F83 RID: 12163 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F83")]
|
||||
[Address(RVA = "0x1B81F40", Offset = "0x1B80D40", VA = "0x181B81F40")]
|
||||
private void init_frames(int skipFrames, bool fNeedFileInfo)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002F84 RID: 12164 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F84")]
|
||||
[Address(RVA = "0x1B81F30", Offset = "0x1B80D30", VA = "0x181B81F30")]
|
||||
private static StackFrame[] get_trace(Exception e, int skipFrames, bool fNeedFileInfo)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackTrace" /> class, using the provided exception object and optionally capturing source information.</summary>
|
||||
/// <param name="e">The exception object from which to construct the stack trace. </param>
|
||||
/// <param name="fNeedFileInfo">
|
||||
/// <see langword="true" /> to capture the file name, line number, and column number; otherwise, <see langword="false" />.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The parameter <paramref name="e" /> is <see langword="null" />.</exception>
|
||||
// Token: 0x06002F85 RID: 12165 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F85")]
|
||||
[Address(RVA = "0x1B81CE0", Offset = "0x1B80AE0", VA = "0x181B81CE0")]
|
||||
public StackTrace(Exception e, bool fNeedFileInfo)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackTrace" /> class using the provided exception object, skipping the specified number of frames and optionally capturing source information.</summary>
|
||||
/// <param name="e">The exception object from which to construct the stack trace.</param>
|
||||
/// <param name="skipFrames">The number of frames up the stack from which to start the trace.</param>
|
||||
/// <param name="fNeedFileInfo">
|
||||
/// <see langword="true" /> to capture the file name, line number, and column number; otherwise, <see langword="false" />.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The parameter <paramref name="e" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="skipFrames" /> parameter is negative.</exception>
|
||||
// Token: 0x06002F86 RID: 12166 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F86")]
|
||||
[Address(RVA = "0x1B81D80", Offset = "0x1B80B80", VA = "0x181B81D80")]
|
||||
public StackTrace(Exception e, int skipFrames, bool fNeedFileInfo)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the number of frames in the stack trace.</summary>
|
||||
/// <returns>The number of frames in the stack trace.</returns>
|
||||
// Token: 0x1700076A RID: 1898
|
||||
// (get) Token: 0x06002F87 RID: 12167 RVA: 0x00018D38 File Offset: 0x00016F38
|
||||
[Token(Token = "0x1700076A")]
|
||||
public virtual int FrameCount
|
||||
{
|
||||
[Token(Token = "0x6002F87")]
|
||||
[Address(RVA = "0x1B81F20", Offset = "0x1B80D20", VA = "0x181B81F20", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the specified stack frame.</summary>
|
||||
/// <param name="index">The index of the stack frame requested.</param>
|
||||
/// <returns>The specified stack frame.</returns>
|
||||
// Token: 0x06002F88 RID: 12168 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F88")]
|
||||
[Address(RVA = "0x1B816D0", Offset = "0x1B804D0", VA = "0x181B816D0", Slot = "5")]
|
||||
public virtual StackFrame GetFrame(int index)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Returns a copy of all stack frames in the current stack trace.</summary>
|
||||
/// <returns>An array of type <see cref="T:System.Diagnostics.StackFrame" /> representing the function calls in the stack trace.</returns>
|
||||
// Token: 0x06002F89 RID: 12169 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F89")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
[ComVisible(false)]
|
||||
public virtual StackFrame[] GetFrames()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002F8A RID: 12170 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F8A")]
|
||||
[Address(RVA = "0x1B815E0", Offset = "0x1B803E0", VA = "0x181B815E0")]
|
||||
private static string GetAotId()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002F8B RID: 12171 RVA: 0x00018D50 File Offset: 0x00016F50
|
||||
[Token(Token = "0x6002F8B")]
|
||||
[Address(RVA = "0x1B81160", Offset = "0x1B7FF60", VA = "0x181B81160")]
|
||||
private bool AddFrames(StringBuilder sb)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002F8C RID: 12172 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002F8C")]
|
||||
[Address(RVA = "0x1B81740", Offset = "0x1B80540", VA = "0x181B81740")]
|
||||
internal void GetFullNameForStackTrace(StringBuilder sb, MethodBase mi)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Builds a readable representation of the stack trace.</summary>
|
||||
/// <returns>A readable representation of the stack trace.</returns>
|
||||
// Token: 0x06002F8D RID: 12173 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F8D")]
|
||||
[Address(RVA = "0x1B81BC0", Offset = "0x1B809C0", VA = "0x181B81BC0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002F8E RID: 12174 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002F8E")]
|
||||
[Address(RVA = "0x479DA0", Offset = "0x478BA0", VA = "0x180479DA0")]
|
||||
internal string ToString(StackTrace.TraceFormat traceFormat)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Defines the default for the number of methods to omit from the stack trace. This field is constant.</summary>
|
||||
// Token: 0x04001A73 RID: 6771
|
||||
[Token(Token = "0x4001A73")]
|
||||
public const int METHODS_TO_SKIP = 0;
|
||||
|
||||
// Token: 0x04001A74 RID: 6772
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001A74")]
|
||||
private StackFrame[] frames;
|
||||
|
||||
// Token: 0x04001A75 RID: 6773
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001A75")]
|
||||
private readonly StackTrace[] captured_traces;
|
||||
|
||||
// Token: 0x04001A76 RID: 6774
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001A76")]
|
||||
private bool debug_info;
|
||||
|
||||
// Token: 0x04001A77 RID: 6775
|
||||
[Token(Token = "0x4001A77")]
|
||||
private static bool isAotidSet;
|
||||
|
||||
// Token: 0x04001A78 RID: 6776
|
||||
[Token(Token = "0x4001A78")]
|
||||
private static string aotid;
|
||||
|
||||
// Token: 0x02000624 RID: 1572
|
||||
[Token(Token = "0x2000624")]
|
||||
internal enum TraceFormat
|
||||
{
|
||||
// Token: 0x04001A7A RID: 6778
|
||||
[Token(Token = "0x4001A7A")]
|
||||
Normal,
|
||||
// Token: 0x04001A7B RID: 6779
|
||||
[Token(Token = "0x4001A7B")]
|
||||
TrailingNewLine,
|
||||
// Token: 0x04001A7C RID: 6780
|
||||
[Token(Token = "0x4001A7C")]
|
||||
NoResourceLookup
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user