/// <summary> /// Reads the function name and displacement of the specified code address. /// </summary> /// <param name="address">The code address</param> public Tuple <string, ulong> ReadFunctionNameAndDisplacement(ulong address) { Microsoft.Diagnostics.Runtime.ClrMethod method = ClrRuntime.GetMethodByAddress(address); IClrModule clrModule = Provider.FromClrModule(method.Type.Module); return(ClrMdStackFrame.ReadFunctionNameAndDisplacement(clrModule.Module, method, address)); }
/// <summary> /// Reads the name of the source file, line and displacement of the specified code address. /// </summary> /// <param name="address">The code address</param> public Tuple <string, uint, ulong> ReadSourceFileNameAndLine(ulong address) { Microsoft.Diagnostics.Runtime.ClrMethod method = ClrRuntime.GetMethodByAddress(address); ClrMdModule clrModule = Provider.FromClrModule(method.Type.Module); return(ClrMdStackFrame.ReadSourceFileNameAndLine(clrModule, method, address)); }