2004-08-27 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Thu, 26 Aug 2004 22:23:39 +0000 (22:23 -0000)
committerChris Toshok <toshok@novell.com>
Thu, 26 Aug 2004 22:23:39 +0000 (22:23 -0000)
* 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

mcs/class/Mono.CSharp.Debugger/ChangeLog
mcs/class/Mono.CSharp.Debugger/MonoSymbolFile.cs

index 4a01822f525b1c975f582140713d267ff10c63d4..4012825ae7a8eed28213bdd80c61de60ec747683 100644 (file)
@@ -1,3 +1,11 @@
+2004-08-27  Chris Toshok  <toshok@ximian.com>
+
+       * 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  <martin@ximian.com>
 
        * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
index deadbf651e382e6d7cab0daf707339dff51b53b8..0dfd709674b6e2a9da1fac548c30a07677466ef0 100644 (file)
@@ -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 {