-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
790 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
MinidumpExplorer/DbgHelp.MinidumpFiles/MiniDumpCommentStreamW.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace DbgHelp.MinidumpFiles | ||
{ | ||
/// <summary> | ||
/// The comment string that was written to the dump file. | ||
/// </summary> | ||
public class MiniDumpCommentStreamW | ||
{ | ||
internal MiniDumpCommentStreamW() | ||
{ | ||
this.Comment = null; | ||
} | ||
|
||
internal MiniDumpCommentStreamW(string comment) | ||
{ | ||
this.Comment = comment; | ||
} | ||
|
||
public string Comment { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
MinidumpExplorer/DbgHelp.MinidumpFiles/MiniDumpThreadName.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using DbgHelp.MinidumpFiles.Native; | ||
|
||
namespace DbgHelp.MinidumpFiles | ||
{ | ||
/// <summary> | ||
/// Contains information about a thread's name/description. | ||
/// </summary> | ||
public class MiniDumpThreadName | ||
{ | ||
private MINIDUMP_THREAD_NAME _threadName; | ||
private MiniDumpFile _owner; | ||
|
||
internal MiniDumpThreadName(MINIDUMP_THREAD_NAME threadName, MiniDumpFile owner) | ||
{ | ||
this._threadName = threadName; | ||
this._owner = owner; | ||
} | ||
|
||
public uint ThreadId => _threadName.ThreadId; | ||
public string Name => _owner.ReadString(_threadName.RvaOfThreadName); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
MinidumpExplorer/DbgHelp.MinidumpFiles/MiniDumpThreadNamesStream.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using DbgHelp.MinidumpFiles.Native; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace DbgHelp.MinidumpFiles | ||
{ | ||
/// <summary> | ||
/// The thread names stream in a minidump, containing information about each thread's name/description (if available). | ||
/// </summary> | ||
public class MiniDumpThreadNamesStream | ||
{ | ||
private MINIDUMP_THREAD_NAME_LIST _threadNamesList; | ||
private List<MiniDumpThreadName> _threadNameEntries; | ||
|
||
internal MiniDumpThreadNamesStream() | ||
{ | ||
_threadNamesList = new MINIDUMP_THREAD_NAME_LIST(); | ||
_threadNameEntries = new List<MiniDumpThreadName>(); | ||
} | ||
|
||
internal MiniDumpThreadNamesStream(MINIDUMP_THREAD_NAME_LIST threadNamesList, MINIDUMP_THREAD_NAME[] threadNameEntries, MiniDumpFile owner) | ||
{ | ||
_threadNamesList = threadNamesList; | ||
_threadNameEntries = new List<MiniDumpThreadName>(threadNameEntries.Select(x => new MiniDumpThreadName(x, owner))); | ||
} | ||
|
||
public IReadOnlyCollection<MiniDumpThreadName> Entries => _threadNameEntries; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
MinidumpExplorer/MinidumpExplorer/Dialogs/AboutDialog.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.