Author: jbevain
Date: 2006-09-25 10:30:52 -0400 (Mon, 25 Sep 2006)
New Revision: 65885
Modified:
trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs
Log:
fix the way the sequence point are emitted
Modified: trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs
===================================================================
--- trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs 2006-09-25 14:15:09 UTC (rev
65884)
+++ trunk/cecil/pdb/Mono.Cecil.Pdb/PdbWriter.cs 2006-09-25 14:30:52 UTC (rev
65885)
@@ -72,9 +72,10 @@
body.Instructions.Count - 1 :
body.Instructions.IndexOf (s.End);
- ArrayList instructions = new ArrayList ();
+ ArrayList instructions = new ArrayList();
for (int i = start; i <= end; i++)
- instructions.Add (body.Instructions
[i]);
+ if (body.Instructions [i].SequencePoint
!= null)
+ instructions.Add
(body.Instructions [i]);
Document doc = null;
@@ -87,8 +88,6 @@
for (int i = 0; i < instructions.Count; i++) {
Instruction instr = (Instruction)
instructions [i];
offsets [i] = instr.Offset;
- if (instr.SequencePoint == null)
- continue;
if (doc == null)
doc =
instr.SequencePoint.Document;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches