diff options
author | Martin Baulig <martin@novell.com> | 2002-09-18 17:59:31 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2002-09-18 17:59:31 +0400 |
commit | 8125abef6b46058bfb3fc23860a4277662b4e578 (patch) | |
tree | 7cb228dabe44e2d60159972015c67b7ebc71d61e /mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs | |
parent | 0c2ce64528143482eb49257c62f216bdd484d366 (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.cs | 6 |
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; } |