/// <summary> /// Constructor a Dump Target around an existing DumpReader. /// </summary> /// <param name="reader"></param> public DumpDataTarget(DumpReader reader) { m_reader = reader; string s = ".\\"; try { // For our trivial implementation, try looking in the CLR directory DumpModule dm = m_reader.LookupModule("clr.dll"); s = dm.FullName; if (s.LastIndexOf('\\') != -1) { s = s.Substring(0, s.LastIndexOf('\\')); } } catch (DumpMissingDataException) { } m_metaDataLocator = new CorDebugMetaDataLocator(s); }
/// <summary> /// Construct a dump target around the dump file. /// </summary> /// <param name="fileName"></param> public DumpDataTarget(string fileName) { m_reader = new Microsoft.Samples.Debugging.Native.DumpReader(fileName); }