Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2002-09-18 17:59:31 +0400
committerMartin Baulig <martin@novell.com>2002-09-18 17:59:31 +0400
commit8125abef6b46058bfb3fc23860a4277662b4e578 (patch)
tree7cb228dabe44e2d60159972015c67b7ebc71d61e /mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
parent0c2ce64528143482eb49257c62f216bdd484d366 (diff)
2002-09-18 Martin Baulig <martin@gnome.org>
* MonoSymbolTable.cs: Set version number to 21. Encode the source file as a 4-byte length field followed by the UTF8 encoded string. svn path=/trunk/mcs/; revision=7585
Diffstat (limited to 'mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs')
-rw-r--r--mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs b/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
index ba1f3cdb799..cae29fb0042 100644
--- a/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
+++ b/mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs
@@ -18,7 +18,7 @@ namespace Mono.CSharp.Debugger
{
public struct OffsetTable
{
- public const int Version = 20;
+ public const int Version = 21;
public const long Magic = 0x45e82623fd7fa614;
public int total_file_size;
@@ -157,7 +157,9 @@ namespace Mono.CSharp.Debugger
if (SourceFileOffset != 0) {
long old_pos = reader.Position;
reader.Position = SourceFileOffset;
- SourceFile = reader.ReadString ();
+ int source_file_length = reader.ReadInt32 ();
+ byte[] source_file = reader.ReadBuffer (source_file_length);
+ SourceFile = Encoding.UTF8.GetString (source_file);
reader.Position = old_pos;
}