Jelajahi Sumber

2004-09-13 Chris Toshok <[email protected]>

	* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
	token before writing out the method index, since the "index" used
	elsewhere is just added to the MethodIndexOffset.

svn path=/trunk/mcs/; revision=33819
Chris Toshok 21 tahun lalu
induk
melakukan
383e2d1e85

+ 6 - 0
mcs/class/Mono.CSharp.Debugger/ChangeLog

@@ -1,3 +1,9 @@
+2004-09-13  Chris Toshok  <[email protected]>
+
+	* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
+	token before writing out the method index, since the "index" used
+	elsewhere is just added to the MethodIndexOffset.
+
 2004-08-27  Martin Baulig  <[email protected]>
 
 	* MonoSymbolFile.cs (MonoSymbolFile..ctor): Read the GUID from the

+ 2 - 3
mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs

@@ -32,6 +32,7 @@ using System;
 using System.Reflection;
 using System.Collections;
 using System.Text;
+using System.Threading;
 using System.IO;
 	
 namespace Mono.CompilerServices.SymbolWriter
@@ -379,10 +380,8 @@ namespace Mono.CompilerServices.SymbolWriter
 			ot.DataSectionSize = (int) bw.BaseStream.Position - ot.DataSectionOffset;
 
 			//
-			// Sort the methods according to their tokens and write
-			// the method table.
+			// Write out the method index
 			//
-			methods.Sort ();
 			ot.MethodTableOffset = (int) bw.BaseStream.Position;
 			for (int i = 0; i < methods.Count; i++) {
 				MethodEntry entry = (MethodEntry) methods [i];