diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2008-02-07 23:11:11 +0300 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2008-02-07 23:11:11 +0300 |
commit | fefd8ba0b32144094497c07423780adaebc3624f (patch) | |
tree | 9852771e3ae0ae7d0fec552933bca509913cece0 /mcs/ilasm | |
parent | 44f17bcdf913c5d1751a7ad47fc42cf52e6af8a7 (diff) |
* 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.
svn path=/trunk/mcs/; revision=95187
Diffstat (limited to 'mcs/ilasm')
-rw-r--r-- | mcs/ilasm/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/ilasm/Driver.cs | 2 | ||||
-rw-r--r-- | mcs/ilasm/codegen/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/ilasm/codegen/CodeGen.cs | 13 |
4 files changed, 11 insertions, 14 deletions
diff --git a/mcs/ilasm/ChangeLog b/mcs/ilasm/ChangeLog index bb90b465ad0..f9c73e2d864 100644 --- a/mcs/ilasm/ChangeLog +++ b/mcs/ilasm/ChangeLog @@ -1,3 +1,8 @@ +2008-02-07 Gert Driesen <drieseng@users.sourceforge.net> + + * Driver.cs: Removed crazy logic prevent debug symbol from being + created when /debug is set. + 2008-02-06 Ankit Jain <jankit@novell.com> Fix bug #358496. diff --git a/mcs/ilasm/Driver.cs b/mcs/ilasm/Driver.cs index eb5ee04410a..81404cedd72 100644 --- a/mcs/ilasm/Driver.cs +++ b/mcs/ilasm/Driver.cs @@ -249,8 +249,6 @@ namespace Mono.ILASM { break; case "debug": case "deb": - if (str[0] != '-') - break; debugging_info = true; break; // Stubs to stay commandline compatible with MS diff --git a/mcs/ilasm/codegen/ChangeLog b/mcs/ilasm/codegen/ChangeLog index 47d7661b851..adec9cb0889 100644 --- a/mcs/ilasm/codegen/ChangeLog +++ b/mcs/ilasm/codegen/ChangeLog @@ -1,3 +1,8 @@ +2008-02-07 Gert Driesen <drieseng@users.sourceforge.net> + + * 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 <rkumpera@novell.com> * EmiteByteInstr.cs: Fixed typo in class name. diff --git a/mcs/ilasm/codegen/CodeGen.cs b/mcs/ilasm/codegen/CodeGen.cs index 73f477403cb..f3d9bf02d1c 100644 --- a/mcs/ilasm/codegen/CodeGen.cs +++ b/mcs/ilasm/codegen/CodeGen.cs @@ -73,7 +73,7 @@ namespace Mono.ILASM { 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 @@ namespace Mono.ILASM { 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; }
}
|