From: Chris Toshok Date: Thu, 26 Aug 2004 22:23:39 +0000 (-0000) Subject: 2004-08-27 Chris Toshok X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=08e3f0eab67ef040ab719be720ef4ebbb945ff2f;p=mono.git 2004-08-27 Chris Toshok * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to MonoSymbolFile.ctor, not filename, so we load the .mdb file instead of the .dll. (MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream ctor. svn path=/trunk/mcs/; revision=32909 --- diff --git a/mcs/class/Mono.CSharp.Debugger/ChangeLog b/mcs/class/Mono.CSharp.Debugger/ChangeLog index 4a01822f525..4012825ae7a 100644 --- a/mcs/class/Mono.CSharp.Debugger/ChangeLog +++ b/mcs/class/Mono.CSharp.Debugger/ChangeLog @@ -1,3 +1,11 @@ +2004-08-27 Chris Toshok + + * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to + MonoSymbolFile.ctor, not filename, so we load the .mdb file + instead of the .dll. + (MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream + ctor. + 2004-08-27 Martin Baulig * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is diff --git a/mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs b/mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs index deadbf651e3..0dfd709674b 100644 --- a/mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs +++ b/mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs @@ -439,7 +439,7 @@ namespace Mono.CompilerServices.SymbolWriter { this.assembly = assembly; - FileStream stream = new FileStream (filename, FileMode.Open); + FileStream stream = new FileStream (filename, FileMode.Open, FileAccess.Read); reader = new MyBinaryReader (stream); try { @@ -478,7 +478,7 @@ namespace Mono.CompilerServices.SymbolWriter string filename = assembly.Location; string name = filename + ".mdb"; - return new MonoSymbolFile (filename, assembly); + return new MonoSymbolFile (name, assembly); } public Assembly Assembly {