Permalink
Browse files

Avoid static state in the pdb reader

  • Loading branch information...
1 parent f3a3643 commit 05ba2ce9ff0279f75a51e618e600c6349b0464ce @jbevain committed Mar 21, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 symbols/pdb/Microsoft.Cci.Pdb/PdbFile.cs
@@ -131,11 +131,11 @@ internal class PdbFile {
return ht;
}
- private static PdbFunction match = new PdbFunction();
-
private static int FindFunction(PdbFunction[] funcs, ushort sec, uint off) {
- match.segment = sec;
- match.address = off;
+ var match = new PdbFunction {
+ segment = sec,
+ address = off,
+ };
return Array.BinarySearch(funcs, match, PdbFunction.byAddress);
}

0 comments on commit 05ba2ce

Please sign in to comment.