forked from Washi1337/AsmResolver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Washi1337#583 from DaZombieKiller/pe-debug
Support EOF data in debug data entries.
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 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
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,43 @@ | ||
using System.Diagnostics; | ||
using AsmResolver.IO; | ||
|
||
namespace AsmResolver.PE.Debug; | ||
|
||
/// <summary> | ||
/// Represents the contents of an empty debug data entry. | ||
/// </summary> | ||
public sealed class EmptyDebugDataSegment : IDebugDataSegment | ||
{ | ||
/// <summary> | ||
/// Creates a new empty debug data segment for the provided debug data content. | ||
/// </summary> | ||
/// <param name="type">The content type.</param> | ||
public EmptyDebugDataSegment(DebugDataType type) | ||
{ | ||
Type = type; | ||
} | ||
|
||
/// <inheritdoc /> | ||
public DebugDataType Type { get; } | ||
|
||
bool ISegment.CanUpdateOffsets => false; | ||
|
||
ulong IOffsetProvider.Offset => 0; | ||
|
||
uint IOffsetProvider.Rva => 0; | ||
|
||
/// <inheritdoc /> | ||
void ISegment.UpdateOffsets(in RelocationParameters parameters) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
uint IWritable.GetPhysicalSize() => 0; | ||
|
||
/// <inheritdoc /> | ||
uint ISegment.GetVirtualSize() => 0; | ||
|
||
void IWritable.Write(BinaryStreamWriter writer) | ||
{ | ||
} | ||
} |
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
72eee24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Results
Failing runs