Author: gert
Date: 2008-02-07 15:11:11 -0500 (Thu, 07 Feb 2008)
New Revision: 95187

Modified:
   trunk/mcs/ilasm/ChangeLog
   trunk/mcs/ilasm/Driver.cs
   trunk/mcs/ilasm/codegen/ChangeLog
   trunk/mcs/ilasm/codegen/CodeGen.cs
Log:
* CodeGen.cs: Use original filename as base name for debug file.
Symbol writer will already add .mdb to it. Fixes bug #359516.
* Driver.cs: Removed crazy logic prevent debug symbol from being
created when /debug is set.


Modified: trunk/mcs/ilasm/ChangeLog
===================================================================
--- trunk/mcs/ilasm/ChangeLog   2008-02-07 20:09:51 UTC (rev 95186)
+++ trunk/mcs/ilasm/ChangeLog   2008-02-07 20:11:11 UTC (rev 95187)
@@ -1,3 +1,8 @@
+2008-02-07  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * Driver.cs: Removed crazy logic prevent debug symbol from being
+       created when /debug is set. 
+
 2008-02-06  Ankit Jain  <[EMAIL PROTECTED]>
 
        Fix bug #358496.

Modified: trunk/mcs/ilasm/Driver.cs
===================================================================
--- trunk/mcs/ilasm/Driver.cs   2008-02-07 20:09:51 UTC (rev 95186)
+++ trunk/mcs/ilasm/Driver.cs   2008-02-07 20:11:11 UTC (rev 95187)
@@ -249,8 +249,6 @@
                                                 break;
                                         case "debug":
                                         case "deb":
-                                               if (str[0] != '-')
-                                                       break;
                                                debugging_info = true;
                                                break;
                                         // Stubs to stay commandline 
compatible with MS 


Property changes on: trunk/mcs/ilasm/Driver.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/mcs/ilasm/codegen/ChangeLog
===================================================================
--- trunk/mcs/ilasm/codegen/ChangeLog   2008-02-07 20:09:51 UTC (rev 95186)
+++ trunk/mcs/ilasm/codegen/ChangeLog   2008-02-07 20:11:11 UTC (rev 95187)
@@ -1,3 +1,8 @@
+2008-02-07  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * CodeGen.cs: Use original filename as base name for debug file.
+       Symbol writer will already add .mdb to it. Fixes bug #359516.
+
 2008-01-03  Rodrigo Kumpera  <[EMAIL PROTECTED]>
 
        * EmiteByteInstr.cs: Fixed typo in class name.

Modified: trunk/mcs/ilasm/codegen/CodeGen.cs
===================================================================
--- trunk/mcs/ilasm/codegen/CodeGen.cs  2008-02-07 20:09:51 UTC (rev 95186)
+++ trunk/mcs/ilasm/codegen/CodeGen.cs  2008-02-07 20:11:11 UTC (rev 95187)
@@ -73,7 +73,7 @@
                         this.is_dll = is_dll;
 
                        if (debugging_info)
-                               symwriter = new SymbolWriter (CreateDebugFile 
(output_file));
+                               symwriter = new SymbolWriter (output_file);
 
                         type_manager = new TypeManager (this);
                         extern_table = new ExternTable ();
@@ -94,17 +94,6 @@
                         this_module = null;
                 }
 
-               private string CreateDebugFile (string output_file)
-               {
-                       int ext_index = output_file.LastIndexOf ('.');
-
-                       if (ext_index == -1)
-                               ext_index = output_file.Length;
-
-                       return String.Format ("{0}.{1}", output_file.Substring 
(0, ext_index),
-                                             "mdb");
-               }
-
                 public PEFile PEFile {
                         get { return pefile; }
                 }


Property changes on: trunk/mcs/ilasm/codegen/CodeGen.cs
___________________________________________________________________
Name: svn:eol-style
   + CRLF

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to