diff options
author | Jb Evain <jb@evain.net> | 2017-03-09 21:10:12 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-03-09 21:10:12 +0300 |
commit | 3518dd01540071dc5c72db01fddb279140c71957 (patch) | |
tree | acae14e4bdfe06212ebe17bce5464ef1c229526e /Test/Mono.Cecil.Tests | |
parent | c08c1878f61f5d2f9453cedd56d8dec8d34f9c80 (diff) |
Fix handling of hidden sequence points
Diffstat (limited to 'Test/Mono.Cecil.Tests')
-rw-r--r-- | Test/Mono.Cecil.Tests/Formatter.cs | 5 | ||||
-rw-r--r-- | Test/Mono.Cecil.Tests/PortablePdbTests.cs | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Test/Mono.Cecil.Tests/Formatter.cs b/Test/Mono.Cecil.Tests/Formatter.cs index 1af56df..8b85f2b 100644 --- a/Test/Mono.Cecil.Tests/Formatter.cs +++ b/Test/Mono.Cecil.Tests/Formatter.cs @@ -83,6 +83,11 @@ namespace Mono.Cecil.Tests { static void WriteSequencePoint (TextWriter writer, SequencePoint sequence_point) { + if (sequence_point.IsHidden) { + writer.Write (".line hidden '{0}'", sequence_point.Document.Url); + return; + } + writer.Write (".line {0},{1}:{2},{3} '{4}'", sequence_point.StartLine, sequence_point.EndLine, diff --git a/Test/Mono.Cecil.Tests/PortablePdbTests.cs b/Test/Mono.Cecil.Tests/PortablePdbTests.cs index 29637d0..34647e9 100644 --- a/Test/Mono.Cecil.Tests/PortablePdbTests.cs +++ b/Test/Mono.Cecil.Tests/PortablePdbTests.cs @@ -28,7 +28,7 @@ namespace Mono.Cecil.Tests { IL_0003: stloc.1 IL_0004: ldc.i4.0 IL_0005: stloc.2 - .line 16707566,0:16707566,0 'C:\sources\PdbTarget\Program.cs' + .line hidden 'C:\sources\PdbTarget\Program.cs' IL_0006: br.s IL_0017 .line 22,22:13,20 'C:\sources\PdbTarget\Program.cs' IL_0008: ldloc.1 @@ -39,7 +39,7 @@ namespace Mono.Cecil.Tests { IL_000c: ldloc.3 IL_000d: call System.Void System.Console::WriteLine(System.String) IL_0012: nop - .line 16707566,0:16707566,0 'C:\sources\PdbTarget\Program.cs' + .line hidden 'C:\sources\PdbTarget\Program.cs' IL_0013: ldloc.2 IL_0014: ldc.i4.1 IL_0015: add |